A
Auralix UI

Date Picker

A date picker component with a calendar popover.

Preview

Installation

bash
npx auralix-ui add date-picker

Usage

Date Picker Demo

tsx
import { DatePicker } from "@/components/ui/DatePicker";

const [date, setDate] = React.useState<Date>();
<DatePicker date={date} setDate={setDate} />

Props

NameTypeDefaultDescription
dateDate-Selected date.

Variants

Standard
With Label
Pick a date
Preselected