Overview
Divider is a dividing line component. It renders a horizontal or vertical visual separator.
- Orientation —
horizontal (default) or vertical
- Variant —
solid (default) or dashed
- Zero config — Usable with just
<Divider /> without any props
Basic Usage
Variants
Props
| Prop | Type | Default | Required | Description |
|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | No | Direction of the line |
variant | 'solid' | 'dashed' | 'solid' | No | Line style |
color | 'default' | 'default' | No | Line color |
thickness | 'thin' | 'thin' | No | Line thickness |
Specification
base
| 상태 | 요소 | 속성 | 값 |
|---|
| enabled | root | borderColor | $color.border.default.default |
| enabled | root | borderWidth | $size.stroke.border |
orientation=horizontal
| 상태 | 요소 | 속성 | 값 |
|---|
| enabled | root | width | 100%토큰 아님 — fills the parent |
orientation=vertical
| 상태 | 요소 | 속성 | 값 |
|---|
| enabled | root | height | 100%토큰 아님 — fills the parent |
variant=solid
| 상태 | 요소 | 속성 | 값 |
|---|
| enabled | root | borderStyle | solid토큰 아님 — no line style token |
variant=dashed
| 상태 | 요소 | 속성 | 값 |
|---|
| enabled | root | borderStyle | dashed토큰 아님 — no line style token |
Guidelines
- When using a vertical Divider, the parent element must have a defined
height
- Use Divider for logical section separation; use Stack's
gap for simple spacing