Components / Date & time

DateTimeRangePicker

A date-time range chosen in a single popover: presets, range calendar, two time lists and Apply/Cancel.

@ruckc/truss-ui Date & time

Import

import { DateTimeRangePicker } from '@ruckc/truss-ui';

Playground

step
value

API

PropTypeDefaultDescription
value bindable { start?: string; end?: string }{}Local date-times "YYYY-MM-DDTHH:MM".
label string—Visible label shown above the control.
min string—Date bounds "YYYY-MM-DD".
max string—Maximum number to show before collapsing the rest.
presets booleantrueQuick ranges (last hour, today, last 7 days…) in the popover.
hour12 booleanfalseUse a 12-hour clock with AM/PM.
step number5Increment between values.
disabled booleanfalseDisables the control: it cannot be focused, changed or activated.
error string—Error message. Marks the control invalid, replaces the hint, and is announced to assistive technology.
weekStart number0First day of the week: 0 = Sunday … 6 = Saturday.
locale string'en-US'BCP-47 locale used for month and weekday names.
/docs/date-time-range-picker Truss UI · MIT