Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
sealed interface DatePickerCellType

Describes a calendar cell's relationship to the displayed month.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Holds the date picker navigation state shared by DatePicker and caller-composed controls.

Link copied to clipboard
Link copied to clipboard
data class DateRange(val start: LocalDate? = null, val end: LocalDate? = null)

A date range being selected by DateRangePicker.

Link copied to clipboard
sealed interface DateRangePickerCellType

Describes a calendar cell's relationship to the selected date range.

Link copied to clipboard

Holds the selected range and calendar navigation state shared by DateRangePicker and caller controls.

Link copied to clipboard

UI rendering contract for date-range calendar cells, sharing the rest of DateUIProvider.

Link copied to clipboard
Link copied to clipboard
interface DateUIProvider

UI rendering contract for the date picker's calendar and selection controls.

Properties

Link copied to clipboard
val DateSaver: Saver<MutableState<LocalDate>, Long>

Functions

Link copied to clipboard
fun DatePicker(uiProvider: DateUIProvider, state: DatePickerState, config: DatePickerConfig, modifier: Modifier = Modifier)

Renders only the date calendar using the caller-supplied DateUIProvider.

Link copied to clipboard
fun DatePickerButtons(uiProvider: DateUIProvider, state: DatePickerState, config: DatePickerConfig, arrangeVertically: Boolean, horizontalSpacing: Dp, buttonToday: @Composable () -> Unit? = { BasicText(text = DatePickerDefaults.texts().today) })

Renders controls that navigate the shared DatePickerState.

Link copied to clipboard
fun DateRangePicker(uiProvider: DateRangeUIProvider, state: DateRangePickerState, config: DatePickerConfig, modifier: Modifier = Modifier)

Renders only the date-range calendar using the caller-supplied DateRangeUIProvider.

Link copied to clipboard
actual fun defaultFormatterSelectedDate(date: LocalDate): String
expect fun defaultFormatterSelectedDate(date: LocalDate): String
actual fun defaultFormatterSelectedDate(date: LocalDate): String
actual fun defaultFormatterSelectedDate(date: LocalDate): String
actual fun defaultFormatterSelectedDate(date: LocalDate): String
Link copied to clipboard
actual fun defaultFormatterSelectedMonth(month: Month): String
expect fun defaultFormatterSelectedMonth(month: Month): String
actual fun defaultFormatterSelectedMonth(month: Month): String
actual fun defaultFormatterSelectedMonth(month: Month): String
actual fun defaultFormatterSelectedMonth(month: Month): String
Link copied to clipboard
actual fun defaultFormatterWeekDayLabel(dayOfWeek: DayOfWeek): String
expect fun defaultFormatterWeekDayLabel(dayOfWeek: DayOfWeek): String
actual fun defaultFormatterWeekDayLabel(dayOfWeek: DayOfWeek): String
actual fun defaultFormatterWeekDayLabel(dayOfWeek: DayOfWeek): String
actual fun defaultFormatterWeekDayLabel(dayOfWeek: DayOfWeek): String
Link copied to clipboard
fun rememberDatePickerDate(date: LocalDate = DateUtil.today()): MutableState<LocalDate>

Remembers a saveable date value for a date picker.

Link copied to clipboard

Creates state to share between DatePicker and controls composed by the caller.

Link copied to clipboard

Remembers a saveable date range for a date-range picker.

Link copied to clipboard
fun rememberDateRangePickerState(dateRange: MutableState<DateRange>, config: DatePickerConfig, dateValidator: (LocalDate) -> Boolean = { true }): DateRangePickerState

Creates state to share between DateRangePicker and controls composed by the caller.