Skip to content

DateRangePicker

uitemplate

calendar date range selector widget

Installation

$ bunx termuijs add date-range-picker

Copies the source into src/components/date-range-picker/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { DateRangePicker } from '@termuijs/ui'
ts
new DateRangePicker(options: DateRangePickerOptions = {})

API Reference

DateRangePicker

PropTypeRequiredDescription
valuePartial<DateRange>optional
onChange(range: Partial<DateRange>) => voidoptional
#template#date-range-picker