# UiLabel

Wraps the native `label` element. Currently only used to provide some default styles for labels.

## Usage

**Associate with input via `id` attribute**:

```html
<template>
  <UiLabel for="name-input">Name</UiLabel>

  <UiInput id="name-input" name="name" required />
</template>

<script lang="ts" setup>
import UiInput from "@dpa-id-components/dpa-shared-components/components/UiInput/UiInput.vue";
import UiLabel from "@dpa-id-components/dpa-shared-components/components/UiLabel/UiLabel.vue";
</script>
```

**Associate with input by wrapping**:

```html
<template>
  <UiLabel>
    Name
    <UiInput name="name" required />
  </UiLabel>
</template>

<script lang="ts" setup>
import UiInput from "@dpa-id-components/dpa-shared-components/components/UiInput/UiInput.vue";
import UiLabel from "@dpa-id-components/dpa-shared-components/components/UiLabel/UiLabel.vue";
</script>
```
