HeroUI Pro

KPI Group

A layout component for arranging multiple KPI cards in horizontal or vertical stacks with consistent spacing.

Usage

Vertical

With From Suffix

CSS Classes

Base Classes

  • .kpi-group - Base group container with shared surface background and rounded corners

Orientation Classes

  • .kpi-group--horizontal - Horizontal layout with equal-width children
  • .kpi-group--vertical - Vertical layout stacking children

Element Classes

  • .kpi-group__separator - Divider between KPI cards (width or height based on orientation)

API Reference

KPIGroup

The root component. Groups KPI cards with shared styling.

PropTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'Layout direction
childrenReactNode-KPI cards and separators

Also supports all native div HTML attributes.

KPIGroup.Separator

A visual divider between KPI cards. Renders as a 1px line.

Also supports all native span HTML attributes.

On this page