ChartCard
Card pre-configured for charts with title, period selector, metric, and legend.
Preview
Usage
import { ChartCard } from '@ramtt/ui'
<ChartCard title="Revenue" periods={['7d','30d','90d']}>
<Chart />
</ChartCard>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title* | string | — | Chart title |
| periods | string[] | — | Period selector options |
| period | string | — | Active period |
| onPeriodChange | (period: string) => void | — | Period change handler |
| children* | ReactNode | — | Chart content |