Skip to main content

Interface: PropsSingle

The props when the single selection is optional.

See

https://daypicker.dev/docs/selection-modes#single-mode

Properties

mode

mode: "single"

Defined in

src/types/props.ts:555


onSelect?

optional onSelect: OnSelectHandler<undefined | Date>

Event handler when a day is selected.

Defined in

src/types/props.ts:560


required?

optional required: false

Defined in

src/types/props.ts:556


selected?

optional selected: Date

The selected date.

Defined in

src/types/props.ts:558