Cards group related content in visually distinct sections. They elevate content above the background, creating structure in spatial interfaces. The Meta Horizon OS UI Set provides three card variants with different visual treatments.
Common features
Content organization: Groups related content with consistent padding. Full-width by default, clipped to shape.
Visual hierarchy: Primary cards are elevated. Secondary cards are flat. Outlined cards have thin borders.
Theming: Colors, shapes, and spacing derive from SpatialTheme/LocalShapes for consistency.
Interaction: Optional click handling. Hover dims content and press scales the card. Announced as a button.
Padding control: Configure via contentPadding. Defaults to medium.
Card variants
Primary card
Composable: PrimaryCard
Usage: Main content areas that need prominent visual treatment. High emphasis with elevated appearance.
Appearance: Elevated surface with shadow creates strong separation from background.