Input
We reply within a day.
npx shadcn add @klarhimmel/inputCopy for AIExamples
Invalid, disabled and read-only
Field
DetailsAbout, usage, props and more
A single-line text field with the system's border, focus ring and invalid state.
When to use
Use for
Short free text: a name, an email, a search.
Not for
Long answers. Use Textarea.
Pairs with
Always inside a Field.
Preview
Enter an address like you@example.com.
Set by the system.
Import
Import
- Files
- input.tsx, in components/klarhimmel/ui/. With it: button, editing, theme, utils.
- Render in
- Render it inside <Theme>, once near the root of your app. Tokens and fonts are scoped to it, so outside it the component is unstyled.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
...input | InputHTMLAttributes | - | Every native input attribute is passed through. |
className | string | - | Extra classes, merged after the component's own. |