Horizontal section divider
Separate related content without introducing another container.
<Divider
label="Related information"
/>
// 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 {
Separate related horizontal or vertical content with optional labels, sizes, and semantic colors. Change any prop and inspect the server-rendered component immediately.Divider
Configure Divider
<Divider
label="Divider"
/>
Compare configurations and resize the browser to check responsive behavior.
Separate related content without introducing another container.
<Divider
label="Related information"
/>
Use a quiet rule between compact content groups.
<Divider
size="sm"
variant="secondary"
/>
Separate groups of inline actions in toolbars and navigation.
<Divider
size="lg"
color="info"
label="Actions"
orientation="vertical"
variant="success"
/>
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 |
label | string | "" | No |
orientation | string | "horizontal" | No |
variant | string | "solid" | No |
class | string | "" | No |