Display
Divider
Horizontal and vertical separators drawn with outline tokens.
<script>
import { Divider } from "@codeatlasdev/ui";
</script>
<Divider />
<Divider orientation="vertical" />
A vertical divider stretches to the height of its flex container, so place it inside a Flex with align="center" or give it a fixed height.
Horizontal
Section A content
Section B content
Section C content
Reference #124 · Pick in the gallery
Code
Vertical
Left
Center
Right
Reference #125 · Pick in the gallery
Code
Props
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | Direction of the separator. |
class | string | '' | Extra class names. |