dssoca docs

Card

Titled panel container.

A bordered panel with an optional title, meta, and action slot. The title renders at a configurable heading level for correct document outline.

Demo

live · storybook Open in Storybook

Demo loads from http://localhost:6006. Run pnpm storybook for it to render locally.

Usage

svelte
<script>
  import { Card } from 'dssoca';
</script>

<Card title="Services" meta="6 of 7 healthy">
  …content…
</Card>

Props

PropTypeDefaultDescription
titlestringPanel heading text.
metastringRight-aligned meta text in the header.
actionSnippetHeader action slot (e.g. a button).
titleLevelnumber3Heading level (h2–h6) for the title.
size'sm' | 'md' | 'lg'Per-instance size override; inherits the ancestor `data-size-variant` when unset.
childrenSnippetRequired. Panel body.