Separator
A divider used to provide visual separation of different content.
#
Importimport { Separator } from '@volue/wave-react';
#
Examples#
BasicSeparator displays a thin horizontal or vertical line, and renders a div
tag.
#
OrientationProvide the orientation
property and set it to either horizontal
or vertical
. Separator will extend to parent element's width/height.
If the vertical
orientation is used, make sure that the parent element is assigned a height.
#
DecorativeSeparator should generally be used when there is a requirement for a semantic divider element. Where there is need for a purely decorative Separator, isDecorative
property should be included.
#
AccessibilitySeparator implements the WAI-ARIA Separator Role and represents a thematic break.
Use Separator to create groupings and divide sections of content from each other.
#
API ReferenceProp | Type | Default |
---|---|---|
as | enum | div |
css | StitchesCss | No default value |
orientation | enum | "horizontal" |
isDecorative | boolean | false |