// Generated by scripts/generate-showcase.mjs. Do not edit directly. page StatsBarDetail { layout = "showcase" state playground_items = JSON.parse(ctx.url.searchParams.get("pg_items") ?? "[{\"label\":\"Composite components\",\"value\":\"18\",\"description\":\"Reusable public-page building blocks\",\"icon\":\"icon-[lucide--blocks]\",\"color\":\"primary\"},{\"label\":\"Rendering\",\"value\":\"SSR\",\"description\":\"Server-first WRNexusJS rendering\",\"icon\":\"icon-[lucide--server]\",\"color\":\"info\"},{\"label\":\"Responsive\",\"value\":\"Yes\",\"description\":\"Mobile, tablet, and desktop layouts\",\"icon\":\"icon-[lucide--monitor-smartphone]\",\"color\":\"success\"},{\"label\":\"Theme aware\",\"value\":\"Yes\",\"description\":\"Active theme and accent palettes\",\"icon\":\"icon-[lucide--palette]\",\"color\":\"warning\"}]") state playground_columns = Number(ctx.url.searchParams.get("pg_columns") ?? "4") state playground_compact = (ctx.url.searchParams.get("pg_compact") ?? "false") === "true" state playground_dividers = (ctx.url.searchParams.get("pg_dividers") ?? "true") === "true" state playground_icons = (ctx.url.searchParams.get("pg_icons") ?? "true") === "true" state playground_size = ctx.url.searchParams.get("pg_size") ?? "default" state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary" state playground_variant = ctx.url.searchParams.get("pg_variant") ?? "raised" state playground_maxWidth = ctx.url.searchParams.get("pg_maxWidth") ?? "xl" state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1" seo { title = "Stats Bar" description = "Present a compact responsive strip of key facts, counts, performance indicators, or trust signals." } view {
Data component

Stats Bar

Present a compact responsive strip of key facts, counts, performance indicators, or trust signals.

10 props0 slots0 outputsTheme readyResponsive
Interactive playground

Configure Stats Bar

Change any prop and inspect the server-rendered component immediately.

Live preview
Component code
<StatsBar
  items='[
    {
      "id": "stats-bar-0-1",
      "key": "stats-bar-0-1",
      "value": "primary",
      "label": "Primary workflow",
      "title": "Primary workflow",
      "description": "A clean default configuration for everyday product interfaces.",
      "text": "A configurable sample message.",
      "href": "#stats-bar-demo",
      "actionHref": "#stats-bar-demo",
      "actionLabel": "View details",
      "icon": "icon-[lucide--sparkles]",
      "iconClass": "icon-[lucide--sparkles]",
      "variant": "primary",
      "status": "Active",
      "time": "09:30",
      "current": true,
      "selected": true,
      "checked": true,
      "disabled": false,
      "outgoing": false,
      "open": true,
      "number": 1,
      "count": 16,
      "percentage": 72,
      "color": "#7c3aed",
      "target": "_self",
      "ariaLabel": "Open primary workflow 1",
      "items": [
        {
          "label": "Nested option A",
          "value": "nested-a"
        },
        {
          "label": "Nested option B",
          "value": "nested-b"
        }
      ],
      "links": [
        {
          "label": "Documentation",
          "href": "#documentation"
        },
        {
          "label": "API reference",
          "href": "#api-reference"
        }
      ],
      "values": [
        "Included",
        "Standard"
      ]
    },
    {
      "id": "stats-bar-0-2",
      "key": "stats-bar-0-2",
      "value": "secondary",
      "label": "Additional option",
      "title": "Supporting example",
      "description": "A clean default configuration for everyday product interfaces.",
      "text": "Another configurable message.",
      "href": "#stats-bar-demo",
      "actionHref": "#stats-bar-demo",
      "actionLabel": "View details",
      "icon": "icon-[lucide--sparkles]",
      "iconClass": "icon-[lucide--sparkles]",
      "variant": "primary",
      "status": "Active",
      "time": "09:30",
      "current": false,
      "selected": false,
      "checked": false,
      "disabled": false,
      "outgoing": true,
      "open": true,
      "number": 2,
      "count": 32,
      "percentage": 72,
      "color": "#7c3aed",
      "target": "_self",
      "ariaLabel": "Open primary workflow 2",
      "items": [
        {
          "label": "Nested option A",
          "value": "nested-a"
        },
        {
          "label": "Nested option B",
          "value": "nested-b"
        }
      ],
      "links": [
        {
          "label": "Documentation",
          "href": "#documentation"
        },
        {
          "label": "API reference",
          "href": "#api-reference"
        }
      ],
      "values": [
        "Included",
        "Standard"
      ]
    }
  ]'
  compact="false"
/>
Component props10 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Public proof strip

Present key facts and trust signals in one compact responsive row.

01
Live preview
Component usage.wrn
<StatsBar
  items='[
    {
      "label": "Composite components",
      "value": "18",
      "description": "Reusable public-page building blocks",
      "icon": "icon-[lucide--blocks]",
      "color": "primary"
    },
    {
      "label": "Rendering",
      "value": "SSR",
      "description": "Server-first WRNexusJS rendering",
      "icon": "icon-[lucide--server]",
      "color": "info"
    },
    {
      "label": "Responsive",
      "value": "Yes",
      "description": "Mobile, tablet, and desktop layouts",
      "icon": "icon-[lucide--monitor-smartphone]",
      "color": "success"
    },
    {
      "label": "Theme aware",
      "value": "Yes",
      "description": "Active theme and accent palettes",
      "icon": "icon-[lucide--palette]",
      "color": "warning"
    }
  ]'
/>
Compact

Three-stat compact bar

Use fewer facts with tighter spacing below a hero or page header.

02
Live preview
Component usage.wrn
<StatsBar
  items='[
    {
      "label": "Composite components",
      "value": "18",
      "description": "Reusable public-page building blocks",
      "icon": "icon-[lucide--blocks]",
      "color": "primary"
    },
    {
      "label": "Rendering",
      "value": "SSR",
      "description": "Server-first WRNexusJS rendering",
      "icon": "icon-[lucide--server]",
      "color": "info"
    },
    {
      "label": "Responsive",
      "value": "Yes",
      "description": "Mobile, tablet, and desktop layouts",
      "icon": "icon-[lucide--monitor-smartphone]",
      "color": "success"
    }
  ]'
  columns="3"
  icons="false"
  size="sm"
  variant="soft"
  maxWidth="wide"
/>
Advanced

Full-width solid statistics

Use a high-contrast statistics bar as a major landing-page transition.

03
Live preview
Component usage.wrn
<StatsBar
  items='[
    {
      "label": "Composite components",
      "value": "18",
      "description": "Reusable public-page building blocks",
      "icon": "icon-[lucide--blocks]",
      "color": "primary"
    },
    {
      "label": "Rendering",
      "value": "SSR",
      "description": "Server-first WRNexusJS rendering",
      "icon": "icon-[lucide--server]",
      "color": "info"
    },
    {
      "label": "Responsive",
      "value": "Yes",
      "description": "Mobile, tablet, and desktop layouts",
      "icon": "icon-[lucide--monitor-smartphone]",
      "color": "success"
    },
    {
      "label": "Theme aware",
      "value": "Yes",
      "description": "Active theme and accent palettes",
      "icon": "icon-[lucide--palette]",
      "color": "warning"
    }
  ]'
  compact="false"
  dividers="false"
  size="lg"
  variant="solid"
  maxWidth="full"
/>
Component API

Props and configuration

All content and behavior shown above is supplied through these props and slots.

PropTypeDefaultRequired
itemsunknown[][]No
columnsnumber4No
compactbooleantrueNo
dividersbooleantrueNo
iconsbooleantrueNo
sizestring"default"No
colorstring"primary"No
variantstring"raised"No
maxWidthstring"xl"No
classstring""No
} }