Divider
A divider line separates different content.
When to use
- Divide sections of an article or page.
- Divide inline text and links with the vertical treatment.
Examples
API
Divider and DividerProps are exported from @ceebee/ui/client.
Divider
| Property | Description | Type | Default | Version |
|---|---|---|---|---|
children | The wrapped title | ReactNode | - | — |
classNames | Customize class for each semantic structure inside the component. Supports object or function. | Record<SemanticDOM, string> | (info: { props })=> Record<SemanticDOM, string> | - | — |
dashed | Whether line is dashed | boolean | false | — |
orientation | Whether line is horizontal or vertical | horizontal | vertical | horizontal | - |
orientationMargin | The margin-left/right between the title and its closest border, while the titlePlacement should not be center, If a numeric value of type string is provided without a unit, it is assumed to be in pixels (px) by default. | string | number | - | — |
plain | Divider text show as plain style | boolean | false | 4.2.0 |
styles | Customize inline style for each semantic structure inside the component. Supports object or function. | Record<SemanticDOM, CSSProperties> | (info: { props })=> Record<SemanticDOM, CSSProperties> | - | — |
size | The size of divider. Only valid for horizontal layout | small | medium | large | - | 5.25.0 |
titlePlacement | The position of title inside divider | start | end | center | center | - |
type | The direction type of divider | horizontal | vertical | horizontal | - |
variant | Whether line is dashed, dotted or solid | dashed | dotted | solid | solid | 5.20.0 |
vertical | Orientation, Simultaneously configure with orientation and prioritize orientation | boolean | false | - |
Also available
The server-safe Ceebee Divider remains at @ceebee/ui; use @ceebee/ui/client for the complete contract.