Field
A label, a control and a line under it, where the description rolls out and the error rolls in. With no description, the line opens as an error arrives.
npx shadcn add https://kinoui.com/r/field.jsonCopy install command
Examples
Default
Submit it empty: the description rolls out of its line and the error rolls in, so the form around it stays still.
From the server
For a check that runs elsewhere, set invalid on the field and give FieldError the message. Try a free address.
Fieldset
Group fields that belong together under a legend.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/field.json- Files
components/kino/label.tsxlib/reduce-motion.tslib/resize.tslib/settle.tscomponents/kino/field.tsx- Packages
@base-ui/react- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
Form
Field
FieldError
Data attributes
CSS variables
Accessibility
- The label names the control, and the description and the error describe it.
- The error line is a polite live region that is there before the error arrives, so a screen reader reads the error out as it appears.
- On submit, focus moves to the first invalid field.
- An invalid control has a red border and a mark in its box, as well as its error, so it never relies on colour alone.
- When the system asks for less motion, the description and the error only fade.