Skip to contentKino
Skip to Content

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.json
Share on

Examples

Default

Its focus ring spreads out of the border. Put it in a Field to label it.

Enter an email like maya@acme.com.

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

npx shadcn@latest add https://kinoui.com/r/input.json
Files
lib/refs.tslib/reduce-motion.tscomponents/kino/input.tsx
Packages
@base-ui/react

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 with aria-label or a Label.
  • Its invalid mark is hidden from screen readers, which hear the error instead.
  • Under forced colours, the focus ring becomes an outline.