Command Palette

Search for a command to run...

Docs
Chrono Select

Chrono Select

A date picker with integrated year selection dropdown and calendar view

Loading...

Installation

Props

PropTypeDefaultDescription
valueDate-Currently selected date
onChange(date: Date | undefined) => void-Callback when date changes
placeholderstring"Pick a date"Placeholder text for the trigger
classNamestring-Additional CSS classes
yearRange[number, number][1970, 2050]Range of years to display

Usage

import { ChronoSelect } from "@/components/ui/chrono-select";
 
function MyDatePicker() {
  const [selectedDate, setSelectedDate] = React.useState<Date | undefined>();
 
  return (
    <ChronoSelect
      value={selectedDate}
      onChange={setSelectedDate}
      placeholder="Select a date"
      yearRange={[2000, 2030]}
    />
  );
}