Input
A text input whose focus ring spreads out of its border, and which marks itself when its field is invalid.
npx shadcn add https://kinoui.com/r/input.jsonCopy install command
Examples
Default
Its focus ring spreads out of the border. Put it in a Field to label it.
Invalid
In an invalid field, its border turns red and a mark scales into its box.
Read only and disabled
A read-only value can be selected and copied; a disabled one is dimmed.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/input.json- Files
lib/refs.tslib/reduce-motion.tscomponents/kino/input.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
Accessibility
- A press anywhere on the box puts the caret in the input.
- In a
Field, the label names it and the description and the error describe it; on its own, name it witharia-labelor aLabel. - Its invalid mark is hidden from screen readers, which hear the error instead.
- Under forced colours, the focus ring becomes an outline.