Skip to content

Time input

Hour and minute as scroll wheels or typed fields, with AM / PM.

Time input Time input

var time by remember {
    mutableStateOf(
        value = LocalTime(
            hour = 9,
            minute = 30,
        ),
    )
}
JengaTimeInput(
    time = time,
    onTimeChange = { time = it },
    hourLabel = "Hour",
    minuteLabel = "Minute",
    amLabel = "AM",
    pmLabel = "PM",
)
JengaTimeInput(
    time = time,
    onTimeChange = { time = it },
    hourLabel = "Hour",
    minuteLabel = "Minute",
    amLabel = "AM",
    pmLabel = "PM",
    style = JengaTimeInputStyle.Fields,
)