Date Range Picker
A typed start-and-end date field with a calendar popover, submitting two ISO day strings.
Paste this into your agent.
Date Range Picker covers trips, out-of-office spans, report periods and bookings. People type both ends or select them in a calendar, and the control reports only complete ranges.
Install
bashnpx shadcn@4.18.0 add @siteplane/date-range-picker
Import it from @/siteplane/components/date-range-picker. The project needs Siteplane UI's one-time setup first: .
When to pick it
- vs : Pick Calendar with
selectionMode="range"for an always-visible grid, two months side by side or quick shortcuts. - vs : Pick Date Picker when only one date is needed.
- vs : Pick two Date Fields only when the two ends are independent questions.
Rules
- Form data carries the two ends under
startNameandendName. The picker takes no singlenameand posts no combined range value. - Store
nullfor an empty controlled range. The value is{ from, to }, andundefinedmeans cleared. - Pass booking rules through
calendarPropsand re-check the range on the server. - Set
startLabelandendLabelwhen the default Start Date and End Date names are too generic. - Use
iconMode="none"when a separate Calendar on the page already drives the range.
Reference
Add to your agent
Print this skill from the terminal, or connect the whole catalog over MCP. Setup guides
CLI
MCP server
Questions
Related skills
Form Field Validation Timingby UI Skillbook
Validate at the right moment — not on every keystroke, not only on submit.
Forms
Siteplane Attachmentby UI Skillbook
A card for a file or image attached to a message or draft, with upload states and actions.
Siteplane UI
Siteplane Autocompleteby UI Skillbook
A text input that suggests completions while still accepting whatever the person types.
Siteplane UI
Siteplane Calendarby UI Skillbook
An inline month grid for picking a single date, several dates or a range, with unavailable-day rules.
Siteplane UI