Skip to content

Card

A container, usually styled as a raised panel.

Use it for: Group related content. Give it a preset or style for background, radius and shadow.

  • CategoryLayout
  • ChildrenAny number
  • DataNone
  • ActionNone

None. Write "props": {}; the look comes from preset and style.

Every component also accepts id (required, unique on its screen), and the optional preset and style described in Style options.

{
"id": "tip",
"type": "Card",
"props": {},
"preset": "panel",
"children": [
{
"id": "tip-text",
"type": "Text",
"props": {
"text": "Rest days count too."
}
}
]
}