Layout

Card block

Groups related content and actions into one visual surface.

Reviewed
On this page

CardBlock · Layout · stable

Groups related content and actions into one visual surface.

Android and KMP are declared rendering targets in the contract. Editor scope: Palette+Inspector.

AI authoring: contract flag set; eligible for Stage 3 screen generation. Actual selection depends on the generation route and research input conditions.

Support and authoring conditions were checked against source on 2026-10-13. Properties, behavior and examples below retain the 2026-09-10 reference snapshot; they do not replace device validation.

All components

Preview and property controls

Start the KMP preview and adjust properties to update the example screen and JSON. Reset the example to restore its initial state.

Usage guidance

Use it for

  • Grouping one topic or record
  • Composite content that needs a surface and padding

Avoid it for

  • When every section becomes a nested card
  • When unrelated content is grouped together

Anatomy and accessibility

  • Optional title

  • Surface

  • Padding

  • Child nodes

  • Do not make the whole card clickable without a clear need.

  • Use the title to clarify the group purpose.

Props contract

Runtime defaults and example values are different. Properties without a documented default remain explicitly unspecified.

Key · labelType · constraintsRequiredRuntime defaultExampleSupport
title · TitletextNoNo documented default"카드"Android / KMP
backgroundColor · Background colorcolorNoNo documented default—Android / KMP
backgroundColorRole · Background roleselect · text, muted, primary, onPrimary, primaryContainer, onPrimaryContainer, secondaryContainer, onSecondaryContainer, surface, surfaceContainerLowest, surfaceContainerLow, surfaceContainer, onSurface, onSurfaceVariant, error, onErrorContainer, background, surfaceVariant, surfaceContainerHigh, surfaceContainerHighestNoNo documented default—Android / KMP
variant · Variantselect · elevated, outlined, filledNo"elevated"—Android / KMP
cornerRadius · Corner radiusnumber · min 0NoNo documented default—Android / KMP
padding · Paddingnumber · min 0NoNo documented default—Android / KMP
children · Children (documentation only)childrenYesNo documented default[]Android / KMP
marginVertical · Vertical marginnumber · min 0, max 64NoNo documented default—Android / KMP
spacing · Spacingnumber · min 0, max 64NoNo documented default—Android / KMP

Binding

This static content component has no default binding.

Supported actions

EventAndroidKMP PreviewNotes
onClickYesYes—

Runtime notes

No additional runtime notes are declared. Refer to the contract tables for platform support.

Contract verified: 2026-09-02 · schemaVersion 2.

Based on the reference-site snapshot generated on September 10, 2026. The documentation import date and runtime verification date are separate.

Original detail reference

Documentation evidence

Working-tree baseline · source paths · HEAD 8213e6b7

  • docs-site/lib/builder-components.json
  • shared/contracts/ui-component-catalog.json
  • shared/contracts/ui-component-guidance.json
  • app-electron/src/shared/componentCatalog.mjs
  • app-electron/src/shared/designCapabilities.mjs
  • app-electron/src/shared/screenAuthoring.mjs
  • app-electron/src/main/llm/screenPipeline.ts

References

DTRAC BuilderYonsei University · Bongshin Lee’s research team