Sketchbook
On this page

Tag <sb-card> · status stable · version 0.1.0

Example

Weekly summary Activity from the last seven days. Totals and trends appear here. View report
<sb-card style="width:360px">
  <sb-card-header>
    <sb-card-title>Weekly summary</sb-card-title>
    <sb-card-description>Activity from the last seven days.</sb-card-description>
  </sb-card-header>
  <sb-card-content>Totals and trends appear here.</sb-card-content>
  <sb-card-footer><sb-button>View report</sb-button></sb-card-footer>
</sb-card>

Properties

Name Type Default Notes
size medium, small medium medium: 24px padding and gap. small: 16px.

Accessibility

  • Role: none (generic container)
  • Accessible name: None. Card has no role, so it is not a landmark or a named region; the title is a visual heading. For a heading in the document outline, put a real heading element inside sb-card-title.

View as Markdown