// Generated by scripts/generate-showcase.mjs. Do not edit directly.
page HeroActionsDetail {
layout = "showcase"
state playground_actions = JSON.parse(ctx.url.searchParams.get("pg_actions") ?? "[{\"label\":\"Browse components\",\"href\":\"#components\",\"icon\":\"icon-[lucide--blocks]\",\"variant\":\"primary\"},{\"label\":\"View metrics\",\"href\":\"#metrics\",\"icon\":\"icon-[lucide--chart-no-axes-column-increasing]\",\"variant\":\"outline\"}]")
state playground_align = ctx.url.searchParams.get("pg_align") ?? "start"
state playground_orientation = ctx.url.searchParams.get("pg_orientation") ?? "horizontal"
state playground_stackOnMobile = (ctx.url.searchParams.get("pg_stackOnMobile") ?? "true") === "true"
state playground_fullWidthMobile = (ctx.url.searchParams.get("pg_fullWidthMobile") ?? "true") === "true"
state playground_size = ctx.url.searchParams.get("pg_size") ?? "default"
state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary"
state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1"
seo {
title = "Hero Actions"
description = "Group hero and campaign actions with consistent alignment, orientation, sizing, and responsive mobile stacking."
}
view {
Interactive playgroundConfigure Hero Actions
Change any prop and inspect the server-rendered component immediately.
Live preview
<HeroActions
actions='[
{
"id": "hero-actions-0-1",
"key": "hero-actions-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": "#hero-actions-demo",
"actionHref": "#hero-actions-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": "hero-actions-0-2",
"key": "hero-actions-0-2",
"value": "secondary",
"label": "Additional option",
"title": "Supporting example",
"description": "A clean default configuration for everyday product interfaces.",
"text": "Another configurable message.",
"href": "#hero-actions-demo",
"actionHref": "#hero-actions-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"
]
}
]'
align="start"
/>
Live examplesDesigned for real product surfaces
Compare configurations and resize the browser to check responsive behavior.
<HeroActions
actions='[
{
"label": "Browse components",
"href": "#components",
"icon": "icon-[lucide--blocks]",
"variant": "primary"
},
{
"label": "View metrics",
"href": "#metrics",
"icon": "icon-[lucide--chart-no-axes-column-increasing]",
"variant": "outline"
}
]'
/>
<HeroActions
actions='[
{
"label": "Browse components",
"href": "#components",
"icon": "icon-[lucide--blocks]",
"variant": "primary"
},
{
"label": "View metrics",
"href": "#metrics",
"icon": "icon-[lucide--chart-no-axes-column-increasing]",
"variant": "outline"
}
]'
align="center"
size="sm"
/>
<HeroActions
actions='[
{
"label": "Browse components",
"href": "#components",
"icon": "icon-[lucide--blocks]",
"variant": "primary"
},
{
"label": "View metrics",
"href": "#metrics",
"icon": "icon-[lucide--chart-no-axes-column-increasing]",
"variant": "outline"
},
{
"label": "Contact support",
"href": "#support",
"icon": "icon-[lucide--life-buoy]",
"variant": "ghost"
}
]'
align="end"
orientation="vertical"
size="lg"
/>
Component APIProps and configuration
All content and behavior shown above is supplied through these props and slots.
| Prop | Type | Default | Required |
|---|
actions | unknown[] | [] | No |
align | string | "left" | No |
orientation | string | "horizontal" | No |
stackOnMobile | boolean | true | No |
fullWidthMobile | boolean | true | No |
size | string | "default" | No |
color | string | "primary" | No |
class | string | "" | No |
}
}