# Timeline Vertical timeline with completed/active/pending step markers. Items can have custom marker icons and rich content via snippets. ## Import ```javascript import { Timeline } from '@rokkit/ui' ``` ## Quick Start ```svelte ``` ## Props | Prop | Type | Default | Description | |------|------|---------|-------------| | `items` | `unknown[]` | `[]` | Data array | | `fields` | `Record` | `{}` | Field mapping (e.g. `{ label: 'title' }`) | | `icons` | `Record` | `{}` | Override marker icons per state | | `class` | `string` | `''` | Additional CSS classes | ## Field Mapping | Field | Default key | Description | |-------|-------------|-------------| | `label` | `'label'` | Step title | | `description` | `'description'` | Secondary text | | `completed` | `'completed'` | Step is done | | `active` | `'active'` | Current step | | `icon` | `'icon'` | Custom marker icon class | ## Snippets - `content(proxy)` — Custom step content (proxy is a `ProxyItem`) ## Data Attributes | Attribute | Description | |-----------|-------------| | `data-timeline` | Root element | | `data-timeline-item` | Individual step | | `data-completed` | Present on completed steps | | `data-active` | Present on the active step | | `data-timeline-marker` | Step marker/icon | | `data-timeline-content` | Text content area |