Foundation / Layout
Divider
server23 kB
@stellaria/nebula-webDividerPropsPreview
Props
9| Prop | Type | Default |
|---|---|---|
children | ReactNode | — |
className Composes with the classes `Box` computes instead of replacing them. | string | — |
color | ColorExtended | "border.default" |
component | (ElementType & C) | — |
label | ReactNode | — |
labelPosition | DividerLabelPosition | "center" |
lineStyle | DividerStyle | "solid" |
orientation | Orientation | "horizontal" |
size | number | DividerSize | "xs" |
Slot props
2Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
labelProps The label. Only rendered when `label` is set; without it the divider is a single line. | TextSlotProps | — |
lineProps BOTH lines, the one before and the one after the label: it is the same element repeated. | BoxSlotProps | — |
Also accepts
On top of its own props, this component forwards these groups.
Style props · 127