Label
A label for a control outside a Field, such as a checkbox or a switch.
npx shadcn add https://kinoui.com/r/label.jsonCopy install command
Examples
Beside a control
Put a checkbox or a switch inside it, and a press on the text toggles it.
For a control
Point it at a control with htmlFor. In a form, FieldLabel does this for you.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/label.json- Files
components/kino/label.tsx
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
Accessibility
- It names the control it holds or points to, and a press on it focuses or toggles that control.
- Use
FieldLabelinside aField, which joins the label to its control for you.