Divider

Alignment target:@astryxdesign/core v0.7.1 · Divider

Usage #

Divider separates groups of content with a thin rule. It can carry a centered label.

Vue
<script setup lang="ts">
import { Divider } from '@astryx-vue/core/Divider'
</script>

<template>
  <Divider label="or" />
</template>

Anatomy

ElementDescription
Divider groupSeparator group that arranges one or two rules around an optional label.
RulePainted line segment; a second segment renders when a label is present.
LabelOptional content displayed between two rule segments.

Best practices #

GuidancePractices
DoUse subtle dividers between related content sections and strong dividers for high-contrast boundaries.
DoAdd a label to the divider when sections need a visible category heading.
Don'tOveruse dividers; rely on spacing and layout to separate content when possible.

Examples #

Divider — Full bleed

Order Summary
3 items $127.00
Shipping $7.99
Tax $10.16
Total $145.15
Open in Playground

The rule runs past the card padding, from edge to edge, between the line items and the total.

Divider — Variants

Sign in with email Enter your email and password to access your account.
Sign in with SSO Use your company credentials to sign in automatically.
By signing in, you agree to our Terms of Service and Privacy Policy.
Open in Playground

A labeled rule for an alternative such as “or”, then a strong rule before the fine print.

Divider — Vertical

Revenue$24,500+12% vs last month
Users1,240+8% vs last month
Conversion3.2%-0.5% vs last month
Open in Playground

Vertical rules between side-by-side metrics.