Fundação
Componentes
- Componentes
- Accordion
- ActivityGraph
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- AvatarGroup
- Badge
- Box
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Connector
- Container
- Context Menu
- Dialog
- Drawer
- DropdownMenu
- Empty
- EnvEditor
- Fade In
- Field
- Fps
- Hover Card
- Highlighter
- Input
- InputGroup
- Input OTP
- Item
- JSONViewer
- Kbd
- Label
- Marquee
- Menubar
- Native Select
- Navigation Menu
- NumberInput
- Pagination
- Popover
- Preview Card
- Progress
- ProgressiveBlur
- Radio Group
- Resizable
- Retro Grid
- Scan Line
- ScrollArea
- Scrubber
- SectionLabel
- Select
- Separator
- Sheet
- Signature
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Stagger Group
- StatusDot
- SystemBanner
- Switch
- Table
- Tabs
- TagInput
- Textarea
- ThemeToogle
- Toggle
- Toggle Group
- Tooltip
- Typing Effect
Mapa de calor por dia: contagens em { date, count } com date em YYYY-MM-DD. Rótulos de mês e dia da semana, legenda Menos / Mais, e escala de cor em cinco níveis. Por defeito ajusta o tamanho das células à largura do contentor (ResizeObserver); opcionalmente fixas blockSize em px.
As chaves de dia alinham com a data local (não UTC) para coincidir com os date dos dados.
Importação
import {
ActivityGraph,
type ActivityEntry,
} from "@zexon/ui/components/activity-graph";
Uso
Exemplo
Props
| Prop | Tipo | Predefinição | Notas |
|---|---|---|---|
data | ActivityEntry[] | — | date (ISO YYYY-MM-DD), count |
colorScale | [string, string, string, string, string] | escala verde | Classes Tailwind por intensidade 0–4 |
blockSize | number | — | px; se omitido, auto |
blockRadius | number | 2 | Raio das células em px |
weeks | number | 52 | Semanas mostradas até ao fim da semana actual |
locale | string | pt-BR | Datas e meses |
className | string | — | Contentor raiz |
Demais props HTML do div raiz são repassadas (exceto children).