Components

Divider

Horizontal/vertical dividing line for visual content separation

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

Section 1

Section 2

Variants

Props

PropTypeDefaultRequiredDescription
orientation'horizontal' | 'vertical''horizontal'NoDirection of the line
variant'solid' | 'dashed''solid'NoLine style
color'default''default'NoLine color
thickness'thin''thin'NoLine thickness

Specification

base

상태요소속성값
enabledrootborderColor$color.border.default.default
enabledrootborderWidth$size.stroke.border

orientation=horizontal

상태요소속성값
enabledrootwidth100%토큰 아님 — fills the parent

orientation=vertical

상태요소속성값
enabledrootheight100%토큰 아님 — fills the parent

variant=solid

상태요소속성값
enabledrootborderStylesolid토큰 아님 — no line style token

variant=dashed

상태요소속성값
enabledrootborderStyledashed토큰 아님 — 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