# Label

> A caption for a form control, associated with its field either through the native `for`/`id` relationship (set `htmlFor` to the field's `id`) or by wrapping the control as a child.

```ts
import { Label } from "@sdxc/ui";
```

Renders its children inside a native `<label>` element, sized and colored
as a form field caption. Pair it with a field by setting `htmlFor` to the
field's `id`, or wrap the field directly so the platform associates them.

## Examples

```tsx
<Label htmlFor="email">{t("form.email.label")}</Label>
```

```tsx
<Label>
	{t("form.newsletter.label")}
	<input type="checkbox" name="newsletter" />
</Label>
```

## Props

Also accepts everything in `TagProps<"label">`.

