WRNexus UI
ComponentsExamplesBlocksTemplates
← All blocks

Metric Grid

A ready-to-use section. Copy the complete example below.

Public services

24

Citizen-facing services available online.

+4 this release

Police stations

126

Searchable station and jurisdiction entries.

Updated today

Availability

99.9 %

Target service availability.

Stable 30 days

Copy this example

page MetricGridExample {
  view {
    <MetricGrid items='[{"label":"Public services","value":"24","description":"Citizen-facing services available online.","icon":"icon-[lucide--hand-heart]","trend":"+4","trendLabel":"this release","trendDirection":"up","color":"primary"},{"label":"Police stations","value":"126","description":"Searchable station and jurisdiction entries.","icon":"icon-[lucide--landmark]","trend":"Updated","trendLabel":"today","color":"info"},{"label":"Availability","value":"99.9","suffix":"%","description":"Target service availability.","icon":"icon-[lucide--activity]","trend":"Stable","trendLabel":"30 days","trendDirection":"positive","color":"success"}]' columns="3" tabletColumns="2" mobileColumns="1" gap="lg" equalHeight="true" dividers="false" size="default" variant="default" maxWidth="full" class="showcase-instance showcase-instance--1" />
  }
}