Skip to content
Forms

Label

The name of a control. Field uses it for you.

import { Label } from "@flinbu/seed";

Required and small

import { Label } from "@flinbu/seed";

<div className="flex flex-col gap-xxs">
  <Label htmlFor="org" required>Organization</Label>
  <input id="org" className="sr-only" />
  <Label size="sm">Small label</Label>
</div>

Use it for

  • Custom layouts where Field doesn't fit.

Props

PropTypeDefaultDescription
requiredbooleannoneAdds a red asterisk (decorative).
disabledbooleannoneDimmed.
size'sm' | 'md''md'12 or 14 px.
classNamestringnoneExtra classes. They win over Seed's, so you can adjust one thing without forking.

Accessibility

  • Always point it at the control with htmlFor.