Marketing Atoms
Available via @stackmates/ui-marketing
ConnectionLine
SVG line with dash pattern, arrow, and label for diagramming notation references.
Data Flow
Direct data transfer between systems
API Call
Asynchronous request/response
Event
Pub/sub message broadcast
ConnectionLineProps
| Prop | Type | Default | Description |
|---|---|---|---|
| type* | 'solid' | 'dashed' | 'dotted' | — | Line style pattern |
| label* | string | — | Label displayed beside the line |
| color* | string | — | Hex color for the line |
| description | string | — | Optional description below label |
Installation
import { ConnectionLine } from '@stackmates/ui-marketing';Usage
Solid line
<ConnectionLine type="solid" label="Data Flow" color="#3b82f6" />With description
<ConnectionLine
type="dashed"
label="API Call"
color="#8b5cf6"
description="Async request/response"
/>Accessibility
- SVG is aria-hidden — label text provides the meaning
- Color + label + line style provide triple encoding
LegendItem
Colored dot with label for chart legends or timeline phase indicators.
Engineering
Design
Marketing
Support
Phase 1
Weeks 1-4
Phase 2
Weeks 5-8
Phase 3
Weeks 9-12
LegendItemProps
| Prop | Type | Default | Description |
|---|---|---|---|
| color* | string | — | Tailwind background color class or raw hex color |
| label* | string | — | Legend label text |
| description | string | — | Optional description text |
Installation
import { LegendItem } from '@stackmates/ui-marketing';Usage
Tailwind class
<LegendItem color="bg-blue-500" label="Engineering" />Hex color with description
<LegendItem color="#6366f1" label="Phase 1" description="Weeks 1-4" />Accessibility
- Color dot is decorative — label text is the primary identifier
- Supports both Tailwind classes and hex colors
StatBox
Single metric display with value, label, and optional sublabel. Use in grids or standalone.
StatBoxProps
| Prop | Type | Default | Description |
|---|---|---|---|
| value* | string | number | — | The statistic value (number or formatted string) |
| label* | string | — | Label describing the stat |
| sublabel | string | — | Optional secondary label |
| size | 'sm' | 'md' | 'lg' | 'md' | Size variant |
Installation
import { StatBox } from '@stackmates/ui-marketing';Usage
Basic
<StatBox value="98%" label="Uptime" />With sublabel and size
<StatBox value="$1.2M" label="Revenue" sublabel="YTD 2026" size="lg" />Accessibility
- Value and label are plain text — readable by screen readers
- Uses semantic font sizing for visual hierarchy
StepIndicator
Numbered circle with label and optional sublabel for process flows and wizards.
StepIndicatorProps
| Prop | Type | Default | Description |
|---|---|---|---|
| number* | number | — | Step number |
| label* | string | — | Step label |
| sublabel | string | — | Optional sublabel/description |
| size | 'sm' | 'md' | 'lg' | 'md' | Size variant |
| variant | 'default' | 'active' | 'completed' | 'default' | Color variant |
Installation
import { StepIndicator } from '@stackmates/ui-marketing';Usage
Basic
<StepIndicator number={1} label="Ingest" sublabel="Load RFP document" />Active variant
<StepIndicator number={2} label="Analyze" variant="active" size="lg" />Accessibility
- Step number + label provide dual encoding (not color alone)
- Variant colors are supplementary to the textual step number