# SbCard A versatile container component for grouping related content with elevation, borders, and optional header/footer sections. Cards can be static, clickable, or linkable. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Elevation | int | 1 | Shadow depth level (0-5) | | Outlined | bool | false | Shows border instead of shadow | | Href | string? | null | Makes card a link to this URL | | NoPadding | bool | false | Removes default padding | | Class | string? | null | Additional CSS classes | | Style | string? | null | Inline styles | | AdditionalAttributes | Dictionary? | null | Additional HTML attributes | ## Events | Event | Type | Description | |-------|------|-------------| | OnClick | EventCallback | Fired when card is clicked (makes card a button) | ## Templates / Slots | Slot | Type | Description | |------|------|-------------| | Header | RenderFragment? | Content for the card header section | | ChildContent | RenderFragment? | Main body content of the card | | Footer | RenderFragment? | Content for the card footer section | ### Template Usage #### Basic ```razor

Card body content

``` #### With Header and Footer ```razor
Card Title

Main content goes here.

Action
``` ## CSS Classes - `sb-card` - Base class - `sb-card--elevation-0` through `sb-card--elevation-5` - Shadow levels - `sb-card--outlined` - Bordered variant - `sb-card--clickable` - Applied when card is interactive - `sb-card--no-padding` - Removes padding - `sb-card__header` - Header section - `sb-card__body` - Body section - `sb-card__footer` - Footer section ## Rendered Element - `
` - Default static card - `` - When `Href` is provided - `