Components
Label
Text that names a form control. Always pair with an input via htmlFor — placeholders alone don't count.
When to useto name a form field so screen readers and eyes can find it.
Import
import { Label } from "@ravnhq/efni/label"With input
<Label htmlFor="op-id">Operator ID</Label>
<Input id="op-id" placeholder="OP-0142" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
…props | React.ComponentProps<"label"> | — | Everything Label passes to the element it renders. |
htmlFor | string | — | The id of the control this label names. Required. |