# Range Calendar

> Date range calendar — Calendar preconfigured for range selection.

Registry name: `range-calendar`. HTML docs: https://ui.anuragroy.dev/component/range-calendar.

## Install

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

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

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

## Import

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

```tsx
import { RangeCalendar } from "@/components/ui/range-calendar"
```

## Usage

```tsx
import { RangeCalendar } from "@/components/ui/range-calendar"

export function Example() {
  return <RangeCalendar />
}
```

## API

### RangeCalendar

Same props as Calendar, with `mode="range"` applied.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `selected` | DateRange | — |  |
| `onSelect` | (range) => void | — |  |

## Notes

- Installing this also installs `calendar`.

## See also

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