← All Releases
2.4.0
July 14, 2026DatePicker component, dynamic per-option icon slots on SegmentedControl, validateOnBlur prop on Input, Dropdown popoverGap fix and selected-option auto-scroll
Summary
- Added the new
DatePickercomponent with single and range selection modes. - Added dynamic per-option slots to
SegmentedControlso each option can be customized (e.g. with an icon) via a#optionNslot. - Added a
validateOnBlurprop toInputso consumers can opt out of blur-triggered validation. - Fixed the default
popoverGaponDropdownand made the options list auto-scroll to the selected option when opened.
Added
Components
- Added
DatePicker— a popover-based date picker built onCalendarandInput, supporting single andrangeselection modes,disablePast/disableFutureconstraints, and forwardedcalendarProps/inputProps/popoverPropsfor full control. - Added dynamic per-option slots to
SegmentedControl. Each option can be customized via a dynamically named slot (#option1,#option2, …#optionN) that replaces the default label and receives the option as{ option }. - Added
validateOnBlurprop toInput(defaulttrue). Whenfalse, blur no longer triggers validation — useful for components likeDatePickerthat manage their own validation timing. - Added the
--lev-dropdown-check-icon-sizeCSS variable toDropdownto control the size of the check icon shown for selected options. - Added the
--lev-input-cursorCSS variable toInputto control the cursor style of the input element.
Changed
Dropdownnow auto-scrolls the options list to the selected option when the popover opens, so the active item is visible without manual scrolling.- Wrapped the Dropdown selected-option check icon in a new
.lev-dropdown-option-checkcontainer that drives sizing via--lev-dropdown-check-icon-size; the inner SVG now fills its container (width: 100%; height: 100%).
Fixed
- Fixed the default
popoverGaponDropdownincreasing from2to4so the popover gap matches the intended spacing across all dropdown-based components.