Label
Accessible label for form controls. Wraps bits-ui Label.
Example
Props
| Prop | Type | Default | Description |
|---|---|---|---|
for | string | — | ID of the associated form control |
class | string | — | Additional CSS classes |
children | Snippet | — | Label text |
Usage
<script>
import { Label, Input } from '@chrissnell/chonky-ui';
</script>
<Label for="email">Email</Label>
<Input id="email" type="text" />