Divider
콘텐츠 사이의 시각적 구분선입니다.
사용 시기
- 기사의 섹션을 나눕니다.
- 인라인 텍스트와 링크를 나눕니다.
예제
가로
Divider의 기본 유형은 가로입니다.
Above
Below
astro
<Divider /> 세로
세로로 만들려면 orientation="vertical"을 사용하십시오.
Left Right
astro
<div class="h-5 flex items-center justify-center">
<span class="text-sm text-zinc-500">Left</span>
<Divider orientation="vertical" />
<span class="text-sm text-zinc-500">Right</span>
</div> 제목의 방향
구분선의 정렬을 왼쪽, 오른쪽 또는 가운데로 설정합니다.
Left Text
Center Text
Right Text
astro
<Divider align="start">Left Text</Divider>
<Divider align="center">Center Text</Divider>
<Divider align="end">Right Text</Divider> API 참조
| 속성 | 설명 | 타입 | 기본값 |
|---|---|---|---|
| orientation | The orientation of the divider. | "horizontal" | "vertical" | "horizontal" |
| align | The alignment of the inner text/content (only applicable horizontally). | "start" | "center" | "end" | "center" |