Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
FormsAndroid

Date field

Select a native date with bounds and validation context.

Public APILumenDateFieldAndroid / Compose

Native example

Use Date field

Use for native date input that needs Lumen supporting and validation context. SwiftUI also supports time and combined date-time input.

Date field rendered in the Android phone emulator Lumen playground
Verified runtime captureAndroid phone emulator
kotlin
LumenDateField(
    label = "Release date",
    value = releaseDateMillis,
    onValueChange = { releaseDateMillis = it },
    minDateMillis = todayUtcMillis,
    description = "Choose when this version becomes available."
)

Reference

Public API

The primary shared and platform-specific options exposed by LumenDateField.

APIValues or typeDefaultDescription
labelStringRequiredLabels the native date picker.
value / onValueChangeLong? / (Long) -> UnitRequiredStores the selected native date value.
Chooses the visible date and time parts.
minDateMillis / maxDateMillisLong?nullConstrains selection using native picker bounds.
description / errorMessageString?nullShows supporting text or a semantic danger validation message.

Native behavior

Design and accessibility

When to use it

Use for native date input that needs Lumen supporting and validation context. SwiftUI also supports time and combined date-time input.

Accessibility

The native picker retains its label and adjustable behavior. Supporting or validation text remains visible in the same contained group.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module