// Generated by scripts/generate-showcase.mjs. Do not edit directly. page DividerDetail { layout = "showcase" state playground_size = ctx.url.searchParams.get("pg_size") ?? "default" state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary" state playground_label = ctx.url.searchParams.get("pg_label") ?? "Divider" state playground_orientation = ctx.url.searchParams.get("pg_orientation") ?? "horizontal" state playground_variant = ctx.url.searchParams.get("pg_variant") ?? "solid" state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1" seo { title = "Divider" description = "Separate related horizontal or vertical content with optional labels, sizes, and semantic colors." } view {
Layout component

Divider

Separate related horizontal or vertical content with optional labels, sizes, and semantic colors.

6 props0 slots0 outputsTheme readyResponsive
Interactive playground

Configure Divider

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

Live preview
Component code
<Divider
  label="Divider"
/>
Component props6 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Horizontal section divider

Separate related content without introducing another container.

01
Live preview
Component usage.wrn
<Divider
  label="Related information"
/>
Compact

Minimal unlabeled divider

Use a quiet rule between compact content groups.

02
Live preview
Component usage.wrn
<Divider
  size="sm"
  variant="secondary"
/>
Advanced

Vertical toolbar divider

Separate groups of inline actions in toolbars and navigation.

03
Live preview
Component usage.wrn
<Divider
  size="lg"
  color="info"
  label="Actions"
  orientation="vertical"
  variant="success"
/>
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
labelstring""No
orientationstring"horizontal"No
variantstring"solid"No
classstring""No
} }