// 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 {
Interactive playgroundConfigure Stats Bar
Change any prop and inspect the server-rendered component immediately.
Live preview
<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"
/>
Live examplesDesigned for real product surfaces
Compare configurations and resize the browser to check responsive behavior.
<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"
}
]'
/>
<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"
/>
<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 APIProps and configuration
All content and behavior shown above is supplied through these props and slots.
| Prop | Type | Default | Required |
|---|
items | unknown[] | [] | No |
columns | number | 4 | No |
compact | boolean | true | No |
dividers | boolean | true | No |
icons | boolean | true | No |
size | string | "default" | No |
color | string | "primary" | No |
variant | string | "raised" | No |
maxWidth | string | "xl" | No |
class | string | "" | No |
}
}