Skip to content

Card

General-purpose content card with optional media, header, body, footer, and action buttons — for pages and forms, not dashboard metrics panels.

HTML tag: c-ebf0e4d684ae8468296245742d195d309

  • page or form content section
  • card with media, header, and footer actions
  • group related content (not dashboard metrics tiles)
PropTypeDefaultDescription
titlestring
subtitlestring
media_srcstring
actionsarray
appearancestringsoft
tonestringneutral
sizestringmd
header_iconstring
header_icon_ariastring
media_altstring
body_contentstring
bodycontentstring
show_dividerboolean
focus_primary_action_requestedboolean
densitystringcomfortable
has_header_slotboolean
interactiveboolean
selectedboolean
accentstringnone
footer_alignstringend
has_header_actions_slotboolean
has_footer_slotbooleanfalse
has_body_slotbooleanfalse
body_overflowstringscroll
body_line_clampnumber3
  • Use appearance/tone/size/density for surface styling (defaults: soft, neutral, md, comfortable).
  • Provide .title/.subtitle or header slot; body via default slot, .body_content, or body slot.
  • Footer actions: .actions array (renders buttons) or footer slot.
  • Prefer slots (media, header, header-actions, footer) for rich layouts.
SignatureDescription
focusPrimaryAction()

Do not use ab-card as a dashboard KPI/chart container (use ab-dashlet). Do not nest ab-card between ab-dashlet and ab-chart on dashboards. Do not duplicate ab-actions in both .actions and header-actions slot without intent.

<c-ebf0e4d684ae8468296245742d195d309 .title=${'Profile'} .appearance=${'soft'} .tone=${'neutral'}>
<p>Body content in default slot</p>
</c-ebf0e4d684ae8468296245742d195d309>