Input

A single-line text field for entering short values, such as an email or a name.

components/ui/input.tsx

Installation

npx betterone-ds add input

Props

PropTypeDefault
type"text" | "email" | "password" | ..."text"
placeholder

Accessibility

  • Always pair an input with a visible label. A placeholder is not a label.
  • Keep the focus ring visible when the field is active.