Demo
Date and time
Documented in Date and time.
Date and time
DatePicker granularity="minute" with a 15-minute time list inside office hours and a time zone.
Appointment
112320261030AM
Demo.tsx
'use client';
import { useState } from 'react';
import { DatePicker } from '@salmonui/calendars/date-picker';
export default function CalendarDateTimePickerDemo() {
const [iso, setIso] = useState('2026-11-23T10:30+01:00');
return (
<div style={{ display: 'flex', flexDirection: 'column', gap: 12, alignItems: 'flex-start' }}>
<DatePicker
label="Appointment"
granularity="minute"
defaultValue="2026-11-23T10:30"
timeStep={15}
minTime="09:00"
maxTime="17:00"
min="2026-11-10T10:30"
timeZone="Europe/Berlin"
onValueChange={(_, details) => setIso(details.iso)}
/>
<output>details.iso: {iso || "''"}</output>
</div>
);
}
Pick a day: focus moves to the time part. The list runs from 09:00 to 17:00
every 15 minutes; on 10 November it starts at 10:30 (min). The value is
read and reported in Europe/Berlin, so details.iso carries the offset.