Accessible labels for form controls.
Add this item from the registry, or import it from the package after installing Default File UI.
Registry path
itsvigneshv/default-file-ui/labelPackage import
import { Label } from "@default-file/ui/components/df-label"Standalone label.
Label paired with a field.
Accessible label for form controls.
| Prop | Type | Default | Notes |
|---|---|---|---|
| htmlFor | string | — | Id of the labeled control. |
| children | ReactNode | — | Label text or content. |
| className | string | — | Additional styles. |
| …label attributes | ComponentProps<"label"> | — | All native label props. |