UIComponentsReact
A one-line text field.
Built on the headless Input.See its API in Docs
Rendered by React 19.3.1
Installation
npx shadcn@4.23.0 add https://hamur.dev/r/react/input.jsonIt also adds utils. The app needs its setup first: Installation.
Usage
It is the headless Input, so it takes the props of an input element and reports its value the way the headless docs show; in a Field it is labelled and validated by the Field.
import { Input } from '@/components/ui/input'Examples
API reference
The styled parts pass every prop to the headless part they wrap and add classes. The props, data attributes and keyboard are on Input's API reference.