Once UI Handbook
Beginner Guides
What is Once UI?
Install & config
Page skeleton
Your first page
Build And Launch
How to launch a portfolio site that actually gets you hired
How to build a documentation site with MDX and Next.js
How to ship a landing page and dashboard with authentication in Next.js
How to launch a social app with Next.js and Supabase
Vibe Coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Common Patterns
Hero section
Static panel
Form layout
Highlighted card
Responsive stacking
Decoration layers
Dialog & modal
Toast & feedback
Tables & lists
Loading states
App shell navigation
Dashboard & charts
Chat & messaging
Auth & verification
Settings & split panels
Data filters & toolbar
Command palette
Pricing & plans
Accordion & FAQ
Media & uploads
Empty & error states
SEO, Open Graph, and structured data
Documentation code blocks with live preview
Carousels, galleries, and before/after comparisons
Date pickers and scheduling
Context menus and dropdown actions
Tags, chips, and multi-value inputs
Roadmap & kanban
Form inputs & controls
Progress, status & badges
Scrolling & feeds
Profile, avatars & identity
Social proof & logo clouds
Masonry & media grids
Table pagination, search & bulk selection
Banners & announcements
Footer layouts
Onboarding & first run
Waitlist & coming soon
Design Tips
Color & surfaces
Harness overview
Row, Column & Grid
Spacing & rhythm
Icons & buttons
Reveal & motion
Theme tokens, FOUC-free init, and runtime style controls
Tooltips and hover cards
Block updates
Block updates changelog
Agent Resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
TrademarkTrademark
Ctrl k
Search...
Sign up
Once UI Handbook
Beginner Guides
What is Once UI?
Install & config
Page skeleton
Your first page
Build And Launch
How to launch a portfolio site that actually gets you hired
How to build a documentation site with MDX and Next.js
How to ship a landing page and dashboard with authentication in Next.js
How to launch a social app with Next.js and Supabase
Vibe Coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Common Patterns
Hero section
Static panel
Form layout
Highlighted card
Responsive stacking
Decoration layers
Dialog & modal
Toast & feedback
Tables & lists
Loading states
App shell navigation
Dashboard & charts
Chat & messaging
Auth & verification
Settings & split panels
Data filters & toolbar
Command palette
Pricing & plans
Accordion & FAQ
Media & uploads
Empty & error states
SEO, Open Graph, and structured data
Documentation code blocks with live preview
Carousels, galleries, and before/after comparisons
Date pickers and scheduling
Context menus and dropdown actions
Tags, chips, and multi-value inputs
Roadmap & kanban
Form inputs & controls
Progress, status & badges
Scrolling & feeds
Profile, avatars & identity
Social proof & logo clouds
Masonry & media grids
Table pagination, search & bulk selection
Banners & announcements
Footer layouts
Onboarding & first run
Waitlist & coming soon
Design Tips
Color & surfaces
Harness overview
Row, Column & Grid
Spacing & rhythm
Icons & buttons
Reveal & motion
Theme tokens, FOUC-free init, and runtime style controls
Tooltips and hover cards
Block updates
Block updates changelog
Agent Resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
TrademarkTrademark
Once UIDocumentationBlog
© Once UI. All rights reserved.
Built with Aveiro
Common patterns

Date pickers and scheduling

DateInput for single dates, DateRangePicker for ranges — calendar UI with optional time selection.
Updated 19d ago
Carousels, galleries, and before/after comparisons
Context menus and dropdown actions
5 min · Pattern
The date input field wraps a calendar dropdown for single dates. The range picker and range input handle start/end pairs. All are client components — keep date state in the parent and pass controlled values.

Pick the right control

Need
Component
Notes
Single date in a form fieldDate input fieldInput + dropdown calendar
Date + time (meetings, deadlines)Date input with time pickerStays open until time is set
Range inside a modal or filter panelRange pickerStandalone dual-month calendar
Range with formatted text fieldRange inputInput pair + shared picker
All date components live under form controls in Core. Import from the main package and mark the parent file as a client component when you hold state.

Single date

The date input field combines an Input trigger with a dropdown calendar. Pass a stable id, a label, a date value, and an onChange handler. Store the value as a date object or undefined in parent state. Wire id, label, value, and onChange to the date input field. The input displays a formatted locale string. Clicking or focusing opens the calendar. Selecting a day calls onChange and closes the dropdown — unless the time picker is enabled.

Time selection

Enable the timePicker prop when users need hour and minute precision — scheduling calls, publishing windows, or SLA timers. With timePicker, the dropdown stays open after the day is picked so the user can adjust hours and minutes.

Bounds and validation

Pass minDate and maxDate to block out-of-range days in the calendar. Pair with Input error text when server validation fails — the picker prevents most mistakes client-side, but API errors still need a message.

Date ranges

For analytics filters or booking flows, use a range object with startDate and endDate — each optional until the user finishes selecting. The range picker embeds directly in a Column or Dialog — no input field. Ideal for filter sidebars and booking modals where the calendar is always visible. The range input adds labeled inputs that open the same range picker in a dropdown. Use it when space is tight and the range is secondary until expanded. Highlight behavior: the first click sets startDate, the second sets endDate. Days between get a range highlight. Clicking a third time restarts selection.

Layout in forms

Stack date fields in a Column with gap 16. For from/to pairs in one row, use a Row with gap 12 and responsive direction column on small screens so fields stack on mobile. Put scheduling fields after related text inputs (title, description) and before submit actions. If the range drives other filters (team, status), place the picker above the data table.

Write this / not this

✅ Once UI way
❌ Common mistake
Controlled date state in parentUncontrolled native date inputs
timePicker only when time mattersAlways showing hour/minute pickers
minDate / maxDate on the pickerLetting users pick impossible ranges
Range picker in a filter panelTiny native inputs with no calendar

Check yourself

  • Parent file is a client component when holding date state
  • Each date input has a unique id for label association
  • Range state uses startDate and endDate consistently
  • Time picker enabled only where time precision is required
  • Error text shown when server rejects a date

Related

→ Form layout → Data filters toolbar → Full reference: docs.once-ui.com — DateInput