A layout component for arranging multiple KPI cards in horizontal or vertical stacks with consistent spacing.
import {KPIGroup} from "@heroui-pro/react";
import {KPI} from "@heroui-pro/react/kpi";
<KPIGroup>
<KPI>{/* ... */}</KPI>
<KPIGroup.Separator /> {/* Optional */}
<KPI>{/* ... */}</KPI>
</KPIGroup>;HeroUI follows the BEM methodology to ensure component variants and states are reusable and easy to customize.
The KPI Group component uses these CSS classes:
.kpi-group: Base group container with shared surface background and rounded corners.kpi-group__separator: Divider between KPI cards (width or height based on orientation).kpi-group--horizontal: Horizontal layout with equal-width children.kpi-group--vertical: Vertical layout stacking childrenThe root component. Groups KPI cards with shared styling.
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | Layout direction |
children | ReactNode | - | KPI cards and separators |
Also supports all native div HTML attributes.
A visual divider between KPI cards. Renders as a 1px line.
Also supports all native span HTML attributes.
Resources