// Generated by scripts/generate-showcase.mjs. Do not edit directly. page ButtonDetail { layout = "showcase" state playground_label = ctx.url.searchParams.get("pg_label") ?? "Save & Submit" state playground_loadingLabel = ctx.url.searchParams.get("pg_loadingLabel") ?? "Loading…" state playground_description = ctx.url.searchParams.get("pg_description") ?? "" state playground_as = ctx.url.searchParams.get("pg_as") ?? "button" state playground_href = ctx.url.searchParams.get("pg_href") ?? "" state playground_target = ctx.url.searchParams.get("pg_target") ?? "" state playground_rel = ctx.url.searchParams.get("pg_rel") ?? "" state playground_type = ctx.url.searchParams.get("pg_type") ?? "submit" state playground_variant = ctx.url.searchParams.get("pg_variant") ?? "default" state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary" state playground_size = ctx.url.searchParams.get("pg_size") ?? "default" state playground_disabled = ctx.url.searchParams.get("pg_disabled") ?? "false" state playground_loading = ctx.url.searchParams.get("pg_loading") ?? "false" state playground_pill = ctx.url.searchParams.get("pg_pill") ?? "false" state playground_fullWidth = ctx.url.searchParams.get("pg_fullWidth") ?? "false" state playground_icon = ctx.url.searchParams.get("pg_icon") ?? "" state playground_iconPosition = ctx.url.searchParams.get("pg_iconPosition") ?? "start" state playground_ariaLabel = ctx.url.searchParams.get("pg_ariaLabel") ?? "" state playground_ariaPressed = ctx.url.searchParams.get("pg_ariaPressed") ?? "" state playground_ariaExpanded = ctx.url.searchParams.get("pg_ariaExpanded") ?? "" state playground_ariaControls = ctx.url.searchParams.get("pg_ariaControls") ?? "" state playground_title = ctx.url.searchParams.get("pg_title") ?? "" state playground_autofocus = ctx.url.searchParams.get("pg_autofocus") ?? "false" state playground_controlClass = ctx.url.searchParams.get("pg_controlClass") ?? "" state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1" seo { title = "Button" description = "Theme-aware, responsive button component." } view {
Base component

Button

Theme-aware, responsive button component.

25 props1 slots0 eventsTheme readyResponsive
Interactive playground

Configure Button

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

Live preview
Component code
<Button
  label="Save & Submit"
  as="button"
  type="submit"
/>
Component props25 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
<Button
  label="Save & Submit"
  as="button"
  type="submit"
/>
Dense UI

Compact application

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

02
Live preview
Component usage.wrn
<Button
  label="Learn more"
  as="a"
  href="#button-demo"
  variant="outline"
  size="sm"
  icon="icon-[lucide--arrow-right]"
  iconPosition="end"
/>
Extended

Rich configuration

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

03
Live preview
Component usage.wrn
<Button
  label="Upgrade plan"
  as="button"
  variant="secondary"
  size="lg"
  pill="true"
/>
Component API

Props and configuration

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

PropTypeDefaultRequired
labelstring"Button"No
loadingLabelstring"Loading…"No
descriptionstring""No
asstring""No
hrefstring""No
targetstring""No
relstring""No
typestring"button"No
variantstring"default"No
colorstring"primary"No
sizestring"default"No
disabledbooleanfalseNo
loadingbooleanfalseNo
pillbooleanfalseNo
fullWidthbooleanfalseNo
iconstring""No
iconPositionstring"start"No
ariaLabelstring""No
ariaPressedstring""No
ariaExpandedstring""No
ariaControlsstring""No
titlestring""No
autofocusbooleanfalseNo
controlClassstring""No
classstring""No
} }