Calendar
The Calendar component is used to show Calendar with current date.
1. Import
KUMUI exports 1 Calendar-related components:
import { Calendar } from "@rohitgadekar/kimui";
2. Usage
January 2025
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
3. API
3.1 Calendar
| Attribute | Type | Description | Default |
|---|---|---|---|
| mode | "single" | "range" | Determines the mode of the calendar. If single, it allows the selection of a single date. If range, it allows the selection of a date range. | single |
| selected | Date | The currently selected date in the calendar (only used in mode="single"). | null |
| onSelect | (date: Date) => void | Callback function triggered when a date is selected. This function receives the selected Date as an argument. | - |
| className | string | Optional CSS class for custom styling. | - |