Calendar
A date input component that allows users to select a date or a list of dates based on the
type prop values 'single' and 'multiple' respectively.
December 2025
S
M
T
W
T
F
S
import { Calendar } from '@kaynora/ui' export default function () { return ( <Calendar /> ) }
The type prop determines whether more than one value can be selected at a time.
January 2025
S
M
T
W
T
F
S
January 2025
S
M
T
W
T
F
S
import { Calendar } from '@kaynora/ui' export default function () { return ( <div style={{ display: 'flex', flexFlow: 'column', gap: '80px', }}> <Calendar type='single' defaultValue={[new Date(2025, 0, 11)]} /> <Calendar type='multiple' defaultValue={[ new Date(2025, 0, 3), new Date(2025, 0, 15), new Date(2025, 0, 19), ]} /> </div> ) }
The value and onChange props enable controlled state management.
December 2025
S
M
T
W
T
F
S
import { Calendar } from '@kaynora/ui' export default function () { return ( <div style={{ display: 'flex', flexFlow: 'column', gap: '40px', }}> <Calendar value={date} onChange={setDate} /> <T>Today is: {date[0].toDateString()}</T> </div> ) }
The minValue and maxValue props determine the earliest and latest selectable dates in the calendar.
January 2025
S
M
T
W
T
F
S
import { Calendar } from '@kaynora/ui' export default function () { return ( <Calendar defaultValue={[new Date(2025, 0, 17)]} minValue={new Date(2025, 0, 10)} maxValue={new Date(2025, 0, 24)} /> ) }
<Calendar />
| Prop | Type | Default |
|---|---|---|
type | | 'single' |
minValue | | undefined |
maxValue | | undefined |
value | | undefined |
defaultValue | | [new Date()] |
onChange | | undefined |
internal | | undefined |