# Card > Compound container component for organizing and displaying content with visual hierarchy. Source: https://shellui.dev/docs/v0.3/components/layout/card ## Overview The Card component is a compound component that provides a flexible container for organizing content with clear visual hierarchy. It uses `Shell.Cn()` for class merging and renders with `rounded-lg border bg-card text-card-foreground shadow-sm` styling. ## Installation ```bash shellui add card ``` ## Usage ### Basic Card ```razor Welcome to ShellUI Build beautiful Blazor applications

Your content goes here.

``` ### Card with Footer ```razor Settings Manage your account preferences
``` ### Stats Card ```razor
Total Revenue $
$45,231.89

+20.1% from last month

``` ### Custom Styling Each sub-component accepts a `Class` parameter merged via `Shell.Cn()`: ```razor Compact Card

Card with custom class overrides.

``` ## API Reference ### Card | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | Child sub-components | | `Class` | `string?` | `null` | Additional CSS classes merged via `Shell.Cn()` | ### CardHeader | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | Header content (title, description) | | `Class` | `string?` | `null` | Additional CSS classes | ### CardTitle | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | Title text | | `Class` | `string?` | `null` | Additional CSS classes | ### CardDescription | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | Description text | | `Class` | `string?` | `null` | Additional CSS classes | ### CardContent | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | Main card body | | `Class` | `string?` | `null` | Additional CSS classes | ### CardFooter | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | Footer content (actions) | | `Class` | `string?` | `null` | Additional CSS classes | ## Accessibility - Uses semantic HTML structure for proper screen reader navigation. - Supports keyboard focus management within interactive card content. - High contrast border and shadow ensure visual distinction.