# Rokkit Card Component
> Data-driven card component with field mapping and link support.
The Card component displays content in a card format, supporting icons, titles, descriptions, and optional link behavior through field mapping.
## Quick Start
```svelte
```
## Core Concepts
### Data-Driven Design
Card adapts to your data structure through field mapping:
```svelte
```
### Link Behavior
When the data includes an `href` field, Card renders as a link:
```svelte
openSettings()} />
```
### Custom Rendering
Use the `child` snippet for custom card content:
```svelte
{#snippet child(proxy)}
{proxy.get('title')}
{proxy.get('description')}
${proxy.value.price}
{/snippet}
```
## Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `value` | `object` | `undefined` | Card data object (use `bind:value`) |
| `fields` | `object` | `{}` | Field mapping configuration |
| `class` | `string` | `''` | CSS class names |
| `child` | `Snippet` | `undefined` | Custom content renderer |
| `children` | `Snippet` | `undefined` | Alternative content |
| `onClick` | `function` | `undefined` | Click handler (when no href) |
## Field Mapping
Map your data fields to card expectations:
| Field | Default | Description |
|-------|---------|-------------|
| `icon` | `'icon'` | Icon class or name |
| `title` | `'title'` | Card title |
| `description` | `'description'` | Card description |
| `href` | `'href'` | Link URL (makes card clickable) |
### Field Mapping Example
```svelte
```
## Component Structure
```
├── // Icon container
│ └── // Icon element
├──