# Input

> Soft-shadowed text input styled like HeroUI fields.

Registry name: `input`. HTML docs: https://ui.anuragroy.dev/component/input.

## Install

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

If the website is down: `npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/input.json`.

Registry JSON: https://ui.anuragroy.dev/r/input.json (GitHub: https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/input.json).

## Import

Import paths follow the consumer `components.json` aliases. After a default install:

```tsx
import { Input } from "@/components/ui/input"
```

## Usage

```tsx
import { Input } from "@/components/ui/input"

export function Example() {
  return <Input placeholder="Type something…" />
}
```

## API

### Input

Base UI Input. Forwards native input props (`type`, `name`, `disabled`, …).

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | string | — |  |

## Notes

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

## See also

- [HTML page](https://ui.anuragroy.dev/component/input): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/input.json): Source files and dependencies.
- [Catalog](https://ui.anuragroy.dev/component): All components.
- [llms.txt](https://ui.anuragroy.dev/llms.txt): Agent index for this library.
