Efniv0.1

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

PropTypeDefaultDescription
…propsReact.ComponentProps<"label">—Everything Label passes to the element it renders.
htmlForstring—The id of the control this label names. Required.