Date Picker
Installation
Run the following command
npx vibes@latest add date-picker
Usage
'use client';import { DatePicker } from '@/vibes/soul/form/date-picker';function Usage() { return ( <DatePicker /> );}
API Reference
DatePickerProps
Prop | Type | Default |
---|---|---|
defaultValue | string | Date | |
disabledDays | CalendarProps['disabled'] | |
errors | string[] | |
onSelect | (date: Date | undefined) => void | |
selected | Date | undefined | |
colorScheme | 'light' | 'dark' | 'light' |