documentation/guides/docs/components/cards.md
Cards display content inside a bordered box, optionally with a title and icon. They are useful for visually grouping related text or UI elements.
string optional
Adds a title to the top of the card.
string optional
Displays an icon in the title area. Uses the Scalar icon format. If both title and icon are provided, the icon appears before the title.
string optional
Displays a large icon to the left of the card content.
<scalar-card>
Card with body.
<scalar-card>
:::scalar-card Card with body. :::
:::scalar-card
Card with body.
:::
<scalar-card title="The Title of the Card">
Card with title and body.
</scalar-card>
:::scalar-card{title="The Title of the Card"} Card with title and body. :::
:::scalar-card{title="The Title of the Card"}
Card with title and body.
:::
<scalar-card icon="solid/basic-shape-hexagon">
Card with icon and body.
</scalar-card>
:::scalar-card{icon="solid/basic-shape-hexagon"} Card with icon and body. :::
:::scalar-card{icon="solid/basic-shape-hexagon"}
Card with icon and body.
:::
<scalar-card leftIcon="solid/basic-shape-hexagon" title="The Title of the Card">
Card with a `leftIcon`, title, and body
</scalar-card>
:::scalar-card{ leftIcon="solid/basic-shape-hexagon" title="The Title of the Card"}
Card with a leftIcon, title, and body
:::
:::scalar-card{ leftIcon="solid/basic-shape-hexagon" title="The Title of the Card"}
Card with a `leftIcon`, title, and body
:::
<scalar-card title="Without Body"></scalar-card>
<scalar-card title="Without Body"></scalar-card>
::scalar-card{title="Without Body"}
::scalar-card{title="Without Body"}