Form fields·loomora/Label
Label
A label element intended for composition with form inputs or as a standalone field label.
Interactive live playground
Tweak props, change states, and see the live component respond in real time.
How to call
Import directly from the Loomora package root. For projects without Tailwind CSS, ensure loomora/dist/index.css is imported once in your root layout.
import { Label } from 'loomora'
<Label required>Email address</Label>API reference
Important public props and how they affect rendering.
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Visible label content. |
| required | boolean | false | Displays the configured required indicator. |
| className | string | config default | Classes applied to the label. |
| attributes | LabelHTMLAttributes | — | Native label attributes, including htmlFor. |