import { DatePicker, DatePickerProps } from './date-picker'; import { DemoStory } from '../../demo/demo-types'; import { ActionSheetDatePicker } from '../../components/action-sheet-date'; import { Button, ButtonSize } from '../../components/button'; export const datePickerDemo: DemoStory = { id: 'datePickerDemo', text: 'DatePicker', args: { value: '2026-02-24', placeholder: 'Pick a date', yearRange: 10, }, argTypes: { value: { control: 'text', description: 'Initial date value (YYYY-MM-DD)' }, placeholder: { control: 'text' }, yearRange: { control: 'number', description: 'Years +/- to show in menu' }, }, render: (args: any) => { return (
Interactive Date Selection

Click the input to open the calendar. Use the header to change year/month. Double-click a date or click OK to confirm.

console.log('Date changed:', val)} />
Presets
Mobile Friendly Alternative

For mobile environments, it is highly recommended to use the ActionSheet-based Date Picker, which provides a native-like bottom-sheet spinning wheel experience.

); }, code: `import { DatePicker } from 'lupine.components/component-pool'; console.log(val)} placeholder="Select date" yearRange={10} /> `, };