Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
LayoutAndroid

Card

Group related native content on a bordered semantic surface with optional card-level action.

Public APILumenCardAndroid / Compose

Native example

Use Card

Use default and muted cards for grouped content, and restrained semantic variants when the surface conveys a real state. Provide a card-level action only when the entire card performs one action.

Card rendered in the Android phone emulator Lumen playground
Verified runtime captureAndroid phone emulator
kotlin
LumenCard(variant = LumenCardVariant.Muted) {
    LumenText("Team workspace")
}

Reference

Public API

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

APIValues or typeDefaultDescription
variantdefault · muted · accent · success · warning · destructivedefaultSelects the native surface treatment.
onClickOptional callbacknilMakes the whole card interactive.
contentNative contentRequiredComposes the card body.
modifierNative layout APIControls card placement and sizing.

Native behavior

Design and accessibility

When to use it

Use default and muted cards for grouped content, and restrained semantic variants when the surface conveys a real state. Provide a card-level action only when the entire card performs one action.

Accessibility

Supplying an action gives the card native button semantics. Avoid nesting an interactive card inside another control.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module