Skip to content

KPI

A key performance indicator tile that displays a metric value alongside a label. Ideal for dashboards.

new KPI("Revenue", "€ 42,000")
PropertyTypeDefaultDescription
titleStringMetric label (e.g. “Revenue”, “Active users”)
textStringMetric value (e.g. ”€ 42,000”, “1,234”)
styleString""Inline CSS
cssClassesString""CSS class names
HorizontalLayout.builder()
.spacing(true)
.content(List.of(
new KPI("Revenue", "€ 42,000"),
new KPI("Orders", "1,234"),
new KPI("Customers", "567"),
new KPI("Avg. order value", "€ 34.03")
))
.build()

Combine KPI tiles with a BoardLayout for a full dashboard layout:

BoardLayout.builder()
.rows(List.of(
BoardLayoutRow.builder()
.items(List.of(
BoardLayoutItem.builder().content(new KPI("Revenue", "€ 42,000")).build(),
BoardLayoutItem.builder().content(new KPI("Orders", "1,234")).build()
))
.build()
))
.build()