Production default
Balanced spacing, hierarchy, and content for the most common product workflow.
page StyledIconExample {
state items = []
view {
<StyledIcon
items="{items}"
label="Verified"
/>
}
}
// Generated by scripts/generate-showcase.mjs. Do not edit directly.
page StyledIconDetail {
layout = "showcase"
state playground_size = ctx.url.searchParams.get("pg_size") ?? "default"
state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary"
state playground_title = ctx.url.searchParams.get("pg_title") ?? "Styled Icon"
state playground_description = ctx.url.searchParams.get("pg_description") ?? ""
state playground_items = JSON.parse(ctx.url.searchParams.get("pg_items") ?? "[]")
state playground_variant = ctx.url.searchParams.get("pg_variant") ?? "default"
state playground_icon = ctx.url.searchParams.get("pg_icon") ?? "icon-[lucide--sparkles]"
state playground_label = ctx.url.searchParams.get("pg_label") ?? "Verified"
state playground_class = ctx.url.searchParams.get("pg_class") ?? ""
seo {
title = "Styled Icon"
description = "Theme-aware, responsive styled icon component."
}
view {
Theme-aware, responsive styled icon component. Change any prop and inspect the server-rendered component immediately.Styled Icon
Configure Styled Icon
page StyledIconExample {
state items = []
view {
<StyledIcon
items="{items}"
label="Verified"
/>
}
}
Compare configurations and resize the browser to check responsive behavior.
Balanced spacing, hierarchy, and content for the most common product workflow.
page StyledIconExample {
state items = []
view {
<StyledIcon
items="{items}"
label="Verified"
/>
}
}
A tighter variation for dashboards, side panels, tables, and operational interfaces.
page StyledIconExample {
state items = []
view {
<StyledIcon
size="sm"
color="success"
items="{items}"
icon="icon-[lucide--check]"
label="Verified"
/>
}
}
A more expressive variation using additional data, stronger emphasis, and optional states.
page StyledIconExample {
state items = []
view {
<StyledIcon
items="{items}"
variant="outline"
icon="icon-[lucide--shield-check]"
label="Verified"
/>
}
}
All content and behavior shown above is supplied through these props and slots.
| Prop | Type | Default | Required |
|---|---|---|---|
size | string | "default" | No |
color | string | "primary" | No |
title | string | "Styled Icon" | No |
description | string | "" | No |
items | unknown[] | [] | No |
variant | string | "default" | No |
icon | string | "icon-[lucide--sparkles]" | No |
label | string | "" | No |
class | string | "" | No |