# Date Range Picker · Pro

Two months side by side with presets down the side, a live preview of the range as you hover toward the end date, and arrow-key navigation across days.

This is a Charcoal UI Pro component. Its source and examples are available with a Pro seat: https://charcoalui.com/pricing

## With a Pro seat

1. Add the registry to components.json:

```json
{
  "registries": {
    "@charcoal": {
      "url": "https://charcoalui.com/r/{name}.json",
      "headers": {
        "Authorization": "Bearer ${CHARCOAL_LICENSE_KEY}"
      }
    }
  }
}
```

2. Copy your licence key from https://charcoalui.com/dashboard and put it in .env.local as CHARCOAL_LICENSE_KEY, then:

```bash
npx shadcn@latest add @charcoal/date-range-picker
```

To read Pro source through this MCP server, reconnect it with the header "Authorization: Bearer <licence key>".

## API — Date Range Picker
| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| `value / defaultValue` | `{ from: Date; to: Date } \| null` | — |  |
| `onValueChange` | `(range) => void` | — |  |
| `weekStartsOn` | `0 \| 1` | `1` |  |
| `locale` | `string` | `"en-US"` |  |
| `placeholder` | `string` | — |  |
| `className` | `string` | — |  |

See it live: https://charcoalui.com/docs/components/date-range-picker