# RangeCalendarProps (@salmonui/calendars/calendar)

> The RangeCalendarProps interface of @salmonui/calendars/calendar.

Canonical: https://salmonui.dev/docs/reference/calendars/calendar/RangeCalendarProps

```ts
import type { RangeCalendarProps } from '@salmonui/calendars/calendar';
```

Entry index: https://salmonui.dev/docs/reference/calendars/calendar (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/calendars/calendar.md).

## Reference

Kind: interface

```ts
interface RangeCalendarProps extends CalendarBaseProps {
    readonly value?: DateRange<DateInput> | null;
    readonly defaultValue?: DateRange<DateInput> | null;
    readonly onValueChange?: (value: DateRange | null, details: CalendarChangeDetails) => void;
    readonly visibleMonths?: number;
    readonly minDays?: number;
    readonly maxDays?: number;
    readonly rangeOverDisabled?: 'block' | 'allow';
}
```

Members (35):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `value` | `readonly value?: DateRange<DateInput> \| null;` | optional |  |
| `defaultValue` | `readonly defaultValue?: DateRange<DateInput> \| null;` | optional |  |
| `onValueChange` | `readonly onValueChange?: (value: DateRange \| null, details: CalendarChangeDetails) => void;` | optional |  |
| `visibleMonths` | `readonly visibleMonths?: number;` | optional | Months shown side by side. Default 1. |
| `minDays` | `readonly minDays?: number;` | optional | Shortest allowed range in days (inclusive). |
| `maxDays` | `readonly maxDays?: number;` | optional | Longest allowed range in days (inclusive). |
| `rangeOverDisabled` | `readonly rangeOverDisabled?: 'block' \| 'allow';` | optional | `'block'` (default): a range may not span a disabled day. |
| `ref` | `ref?: Ref<HTMLDivElement>;` | optional, inherited |  |
| `granularity` | `granularity?: CalendarGranularity;` | optional, inherited | Deepest selectable unit; also the deepest view (`'month'` makes a month picker). Default `'day'`. |
| `view` | `view?: CalendarView;` | optional, inherited |  |
| `defaultView` | `defaultView?: CalendarView;` | optional, inherited |  |
| `onViewChange` | `onViewChange?: ((view: CalendarView) => void);` | optional, inherited |  |
| `minView` | `minView?: CalendarView;` | optional, inherited | Deepest view the user can navigate to. Default: from `granularity`. |
| `maxView` | `maxView?: CalendarView;` | optional, inherited | Highest view the heading button can reach. Default `'decade'`. |
| `focusedValue` | `focusedValue?: DateInput \| null;` | optional, inherited | The date the calendar shows and focuses. |
| `defaultFocusedValue` | `defaultFocusedValue?: DateInput;` | optional, inherited |  |
| `onFocusedValueChange` | `onFocusedValueChange?: ((date: PlainDate) => void);` | optional, inherited |  |
| `min` | `min?: DateInput;` | optional, inherited | Earliest selectable date (unbounded by default). |
| `max` | `max?: DateInput;` | optional, inherited | Latest selectable date (unbounded by default). |
| `isDateDisabled` | `isDateDisabled?: ((date: PlainDate) => boolean);` | optional, inherited | Disables single days (weekends, holidays); disabled days stay focusable. |
| `renderDay` | `renderDay?: ((ctx: CalendarDayContext) => ReactNode);` | optional, inherited | Content of a day cell; the default is the day number. |
| `getDayProps` | `getDayProps?: ((ctx: CalendarDayContext) => CalendarDayProps \| undefined);` | optional, inherited | Extra `className`, `style`, `title` and `data-*` for a day cell. |
| `firstDayOfWeek` | `firstDayOfWeek?: number;` | optional, inherited | 0 Sunday ... 6 Saturday. Default: the locale's week info. |
| `showWeekNumbers` | `showWeekNumbers?: boolean;` | optional, inherited |  |
| `weekRule` | `weekRule?: WeekRule;` | optional, inherited | Which week of January is week 1. Default: the locale's minimal days. |
| `weekdayFormat` | `weekdayFormat?: WeekdayFormat;` | optional, inherited | Weekday header width. Default `'short'`. |
| `calendar` | `calendar?: string;` | optional, inherited | `Intl` calendar id (`'gregory'`, `'islamic-umalqura'`, `'japanese'`, ...). Default: the `-u-ca-` of `locale`, else Gregorian. |
| `locale` | `locale?: string;` | optional, inherited | BCP 47 locale. Default `'en-US'`; the host locale is never read. |
| `timeZone` | `timeZone?: string;` | optional, inherited | IANA zone for `Date` and offset inputs and for today. Default: the host zone on the client only. |
| `showTodayButton` | `showTodayButton?: boolean;` | optional, inherited |  |
| `showOutsideDays` | `showOutsideDays?: boolean;` | optional, inherited | Show the days of the previous and next month. Default `false`. |
| `disabled` | `disabled?: boolean;` | optional, inherited |  |
| `readOnly` | `readOnly?: boolean;` | optional, inherited |  |
| `localeText` | `localeText?: Partial<CalendarLocaleText>;` | optional, inherited |  |
| `dir` | `dir?: "ltr" \| "rtl";` | optional, inherited | Direction override; inherited from the document by default. |
