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" |