Skip to content

Browse components

← All components

Input

Soft-shadowed text input styled like HeroUI fields.

Install
npx shadcn@latest add https://ui.anuragroy.dev/r/input.json

Preview

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.json

GitHub fallback if the website is down:

Terminal
npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/input.json

Usage

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`, …).

PropTypeDefault
classNamestring—

Notes

  • Invalid state is styled via `data-invalid` from the parent field.