# Time Field

> Native time input with label, description, and error slots.

Registry name: `time-field`. HTML docs: https://ui.anuragroy.dev/component/time-field.

## Install

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

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

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

## Import

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

```tsx
import { TimeField } from "@/components/ui/time-field"
```

## Usage

```tsx
import { TimeField } from "@/components/ui/time-field"

export function Example() {
  return <TimeField label="Start time" defaultValue="09:30" />
}
```

## API

### TimeField

Native `input type="time"` plus field chrome.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `label` | React.ReactNode | — |  |
| `description` | React.ReactNode | — |  |
| `errorMessage` | React.ReactNode | — |  |
| `containerClassName` | string | — |  |

## See also

- [HTML page](https://ui.anuragroy.dev/component/time-field): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/time-field.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.
