Day

fun Day(day: JengaCalendarDay, selected: Boolean, enabled: Boolean, isToday: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, contentDescription: String? = null, colors: JengaCalendarColors = colors())(source)

A standard day cell: the day number in a circle, filled when selected and outlined when isToday. Days outside the shown month draw nothing.

Parameters

day

the calendar day.

selected

whether the day is selected.

enabled

whether the day can be picked.

isToday

whether the day is today.

onClick

called when the day is tapped.

modifier

the Modifier for this cell.

contentDescription

accessibility label for the day (e.g. "Wednesday, 18 March").

colors

the color set; defaults to colors.