Skip to content

Early previewhamur is not on npm yet. The components are being built in the open, follow along on GitHub.

UIComponentsReact

Input

A one-line text field.

Built on the headless Input.See its API in Docs

Rendered by React 19.3.1

input.tsx

Installation

npx shadcn@4.23.0 add https://hamur.dev/r/react/input.json

It 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.