Input
Accepts a single line of native text, search, date, or numeric input.
@rivetui/inputPreview
Explore each composition interactively, then open its code in the same context.
Default
Use the native input type that matches the value being collected.
States
Populated, invalid, and disabled inputs share the same geometry and semantic state treatment.
Native types
Preserve browser behavior by forwarding native email, password, search, and date types.
Registry
Installation
Add the component source and its declared dependencies with the shadcn CLI.
Install component
bunx --bun shadcn@latest add @rivetui/inputPublic interface
API reference
Component-specific props are listed here. Native element and Base UI props continue to pass through.
| Prop | Type | Default |
|---|---|---|
type | HTMLInputTypeAttribute | "text" |
disabled | boolean | false |
aria-invalid | boolean | string | false |