// 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 {
Base component

Styled Icon

Theme-aware, responsive styled icon component.

9 props0 slots0 outputsTheme readyResponsive
Interactive playground

Configure Styled Icon

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

Live preview
Component code
page StyledIconExample {
  state items = []
  view {
    <StyledIcon
      items="{items}"
      label="Verified"
    />
  }
}
Component props9 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Production default

Balanced spacing, hierarchy, and content for the most common product workflow.

01
Live preview
Component usage.wrn
page StyledIconExample {
  state items = []
  view {
    <StyledIcon
      items="{items}"
      label="Verified"
    />
  }
}
Dense UI

Compact application

A tighter variation for dashboards, side panels, tables, and operational interfaces.

02
Live preview
Component usage.wrn
page StyledIconExample {
  state items = []
  view {
    <StyledIcon
      size="sm"
      color="success"
      items="{items}"
      icon="icon-[lucide--check]"
      label="Verified"
    />
  }
}
Extended

Rich configuration

A more expressive variation using additional data, stronger emphasis, and optional states.

03
Live preview
Component usage.wrn
page StyledIconExample {
  state items = []
  view {
    <StyledIcon
      items="{items}"
      variant="outline"
      icon="icon-[lucide--shield-check]"
      label="Verified"
    />
  }
}
Component API

Props and configuration

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

PropTypeDefaultRequired
sizestring"default"No
colorstring"primary"No
titlestring"Styled Icon"No
descriptionstring""No
itemsunknown[][]No
variantstring"default"No
iconstring"icon-[lucide--sparkles]"No
labelstring""No
classstring""No
} }