Stylish Date Range Picker
A calendar-based date range picker for selecting a start and end date, rendered with the active theme's Material 3 DatePickerColors.
This is the Finish-layer wrapper around the Material 3 DateRangePicker under the ExperimentalMaterial3Api opt-in, so callers can embed the picker without importing the experimental M3 API. The picker is an inline component; embed it in a screen or dialog and create its state with rememberStylishDateRangePickerState. The default title and headline mirror the M3 defaults (selection summary above the calendar, with a mode toggle to switch to direct date input when showModeToggle is true).
Parameters
The DateRangePickerState driving the picker, exposing DateRangePickerState.selectedStartDateMillis and DateRangePickerState.selectedEndDateMillis.
Modifier applied to the picker root.
The DatePickerFormatter used to display dates. Defaults to DatePickerDefaults.dateFormatter.
The DatePickerColors resolving the picker's colors. Defaults to DatePickerDefaults.colors from the active theme.
An optional composable displayed above the calendar as the picker title. Defaults to the M3 title showing the current display mode.
An optional composable showing the currently selected range. Defaults to the M3 range headline.
Whether to show the toggle switching between the calendar and the date range input mode. Defaults to true.
A FocusRequester used to focus the text field when the picker is in input mode. Pass null to skip focusing. Defaults to a remembered FocusRequester.