Divider
Alignment target:@astryxdesign/core v0.7.1 · Divider
or
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
| Element | Description |
|---|---|
| Divider group | Separator group that arranges one or two rules around an optional label. |
| Rule | Painted line segment; a second segment renders when a label is present. |
| Label | Optional content displayed between two rule segments. |
Best practices #
| Guidance | Practices |
|---|---|
| Do | Use subtle dividers between related content sections and strong dividers for high-contrast boundaries. |
| Do | Add a label to the divider when sections need a visible category heading. |
| Don't | Overuse 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
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.
or
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.
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
Vertical rules between side-by-side metrics.