Visually divide sections of content or groups of items.
import { Separator } from '@fluxui-dev/react';<Separator />
Add text to the separator for a more descriptive element.
<Separator text="or" />
Separate contents with a vertical separator when horizontally stacked.
<Separator vertical />
You can limit the height of the vertical separator by adding vertical margin.
<Separator vertical className="my-2" />
Flux offers a subtle variant for a separator that blends into the background.
<Separator vertical variant="subtle" />
|
Prop
|
Description
|
|---|---|
| vertical |
Displays a vertical separator. Default is horizontal.
|
| variant |
Visual style variant. Options: default, subtle. Default: default.
|
| text |
Optional text, or any other content, to display in the center of a horizontal separator.
|
| orientation |
Alternative to vertical prop. Options: horizontal, vertical. Default: horizontal.
|
|
CSS
|
Description
|
|---|---|
| className |
Additional CSS classes applied to the separator. Commonly my-* to shorten vertical separators.
|
|
Attribute
|
Description
|
|---|---|
| data-flux-separator |
Applied to the root element for styling and identification.
|
| data-orientation |
The separator's orientation: horizontal or vertical.
|