Components
Divider Bar
AppDividerBar — a house section divider that separates stacked sections down a page, with an optional title and a right-aligned action group on the divider line. Built on the same divider convention as the Action Bar.
AppDividerBar
ComponentHouse section divider with an optional title and a right-aligned action group.
src/components/common/RequiresantdLive example
A plain titled divider, and the variant that carries a trailing action on the same line. Both use the house mt-0 mb-2 spacing — the same divider contract the Action Bar is built from.
Section content sits below the rule.
Rows would render here.
import AppDividerBar from '@/components/common/AppDividerBar';
import { Button } from 'antd';
{/* plain section divider */}
<AppDividerBar title="Contact details" />
{/* divider with a trailing action on the same line */}
<AppDividerBar title="Line items">
<Button size="small" type="link">Add row</Button>
</AppDividerBar>Usage
Use it to separate stacked sections within a form or detail page. Pass a title to label the section, and children to place actions (an “Add row” link, a toggle) flush-right on the rule. With no children it renders a single Divider with standard spacing — identical to the dividers the Action Bar uses.
Props
| Name | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | Optional section label rendered on the divider line. |
orientation | 'left' | 'center' | 'right' | 'left' | Where the title sits on the rule. |
children | ReactNode | — | Optional trailing actions, aligned right on the divider line (switches to the flex layout). |
Notes
mt-0 / mb-2 spacing so vertical rhythm stays consistent no matter which separator a page reaches for.AppActionBar (which ends in a divider), don’t add a Divider Bar immediately after — you’d double the rule.