React
Divider
시각적 구분자로써 역할을 하며, 콘텐츠 간의 구획을 명확히 나누는 데 사용하는 컴포넌트입니다.
사용 가능 버전@seed-design/[email protected], @seed-design/[email protected]
Nisi elit pariatur incididunt quis fugiat mollit ipsum fugiat duis culpa esse incididunt cupidatat.
Consectetur voluptate quis do culpa et culpa.
Props
Prop
Type
as?"div" | "hr" | "li" | undefined
The HTML element to use for the divider. Keep in mind that "hr" elements are read by screen readers as a semantic break with an implicit role="separator" If the element should be read by screen readers but be rendered as an element other than "hr", give an explicit role="separator"
Default
"hr"
color?ScopedColorPalette | ScopedColorStroke | (string & {}) | undefined
Default
"stroke.neutralMuted"
thickness?0 | 1 | (string & {}) | undefined
Default
1
orientation?"horizontal" | "vertical" | undefined
Default
"horizontal"
inset?boolean | undefined
Default
false
Usage
Screen Reader Behavior
Divider는 기본적으로 <hr />을 렌더링합니다. <hr />은 의미를 가진(semantic) 구분선이며, 스크린 리더 역시 해당 요소를 "수평(수직) 분할선"으로 읽습니다.
Divider가 의미를 가지지 않은 장식적 요소라면, as prop을 활용해 <div> 등으로 렌더링하여 스크린 리더가 해당 요소를 읽지 않도록 해야 합니다.
반대로, Divider를 <li> 등 <hr />이 아닌 요소로 렌더링해야 하는 상황에서, 스크린 리더가 해당 요소를 읽어야 한다면, role="separator"를 명시적으로 지정해야 합니다.
Examples
Orientation
Inset
Last updated on 2026. 8. 2.