Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
React Native docs
LayoutReact Native

Card

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

Public APILumenCardReact Native

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.

View verified React Native runtime capture
Card rendered in the Expo web renderer Lumen playground
Verified runtime captureExpo web renderer
tsx
<LumenCard variant="muted">
  <LumenText>Team workspace</LumenText>
</LumenCard>

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.
onPressOptional callbacknilMakes the whole card interactive.
childrenNative contentRequiredComposes the card body.
styleNative 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

Apple / SwiftUIAndroid / Compose
React Native docsNative primitives