2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search docs...
Form Controls

DateInput

Updated: May 12, 2025
View on GitHub
The DateInput component provides an enhanced date picker that combines an input field with a dropdown calendar interface. It allows users to easily select dates with optional time selection. Enable time selection by setting the timePicker prop to true.
  • Calendar Interface: Visual calendar for easy date selection
  • Time Selection: Optional time picker for selecting hours and minutes
  • Formatted Display: Displays selected date in a readable format
  • Dropdown Integration: Uses DropdownWrapper for a clean UI experience
Prop
Type
Default
idrequired
string
label
string
placeholder
string
value
Date
onChange
(date: Date) => void
minHeight
Minimum height of the calendar popover.
number
className
string
style
React.CSSProperties
timePicker
booleanfalse
minDate
Earliest date the calendar allows.
Date
maxDate
Latest date the calendar allows.
Date
…and every InputProps propinherited
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club