Content Divider

Divider separating content sections. Three styles × six types (heading, text, button, button icon, button group, button group icon).

import{ ContentDivider } from "@pepulux/ui"

Styles


Notifications


Notifications

Notifications

Type: Text

Label sits between the lines.


Today


Section 2

Type: Button and Button icon

Uses the Button atom.



Type: Button group and Button group icon

Uses the ButtonGroup atom.



Props

PropTypeDefaultDescription
style"single-line" | "dual-line" | "background-fill""single-line"Figma Style
type"heading" | "text" | "button" | "button-icon" | "button-group" | "button-group-icon""heading"Figma Type — what sits in the middle of the divider
labelstring—Text for heading / text types
buttonLabelstring"Add"Label for type=button
groupItems{ id: string; label: string; isActive?: boolean }[]—Items for type=button-group
onButtonClick() => void—Click handler for button / button-icon
onGroupClick(id: string) => void—Click handler for group items (prev / add / next for icon group)
classNamestring—Additional CSS classes
Application component → Content dividerswww.pepulux.com

Notes and documentation

Space for notes, documentation, and best practices for using these components.

Separate without shouting

Use a divider to break a long page into labelled chunks. Pair it with a heading, a date label or a small control such as a button group when the section needs one.