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#

All form components

Learn more