Forms
Navigation & layout
Data display & feedback
Date & time
Browse components
← All components
Input
Soft-shadowed text input styled like HeroUI fields.
Install
npx shadcn@latest add https://ui.anuragroy.dev/r/input.jsonPreview
Loading preview…
Installation
Add the component from this site. The shadcn CLI fetches the registry JSON over HTTPS — no named registry submission required.
Terminal
npx shadcn@latest add https://ui.anuragroy.dev/r/input.jsonGitHub fallback if the website is down:
Terminal
npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/input.jsonUsage
Import paths follow your components.json aliases. After install, the default path is @/components/ui/input.
Import
import { Input } from "@/components/ui/input"example.tsx
import { Input } from "@/components/ui/input"export function Example() { return <Input placeholder="Type something…" />}API Reference
Input
Base UI Input. Forwards native input props (`type`, `name`, `disabled`, …).
| Prop | Type | Default |
|---|---|---|
| className | string | — |
Notes
- Invalid state is styled via `data-invalid` from the parent field.