Input
The base text input with sm, default and lg sizes and designed hover, focus, disabled, read only and invalid states. A drop in shadcn style input for React.
src/registry/ui/input.tsx/r/input.json
Default
Disabled
Installation#
bash
npx shadcn@latest add @minidev/input
MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/input.json
Usage#
tsx
import { Input } from "@/components/ui/input"
export function Example() {
return (
<Input id="email" type="email" placeholder="you@company.com" />
)
}
API reference#
Also accepts every prop of <input>, passed through to the root element.
Dependencies#
npm
@base-ui/reactclass-variance-authority
Built from
No other MiniDev files
Examples#
Related forms components#
AutocompleteText input that filters string options as you type, using ARIA combobox and listbox roles. Works controlled or uncontrolled and lists up to eight matches.Calendar MonthMonth calendar grid with weekday headers and clickable day cells that highlight the selected date. A simple Tailwind base for date views and schedulers.Character CountLive React character counter that shows the current count against a limit and turns red when it goes over. Announces changes politely to screen readers.Checkbox GroupVertical wrapper that groups related checkboxes under role group with even spacing. Use it with Checkbox and labels for multi select settings.CheckboxShadcn style checkbox on Base UI with an animated check, indeterminate state, invalid and disabled styles, and an enlarged hit area for touch.Chip FilterSingle select filter chips in React that behave as a radio group, with an accent ring on the active chip. Good for quick filters above lists and tables.
All form components