コンテンツへスキップ

コンポーネント

区切り線

コンテンツやコントロールのグループを区切る線。

使い方

基本

Above the line

Below the line

HTML
<bs:bsui-stack direction="column" gap="3">
  <bs:bsui-text content="Above the line" />
  <bs:bsui-separator orientation="horizontal" />
  <bs:bsui-text content="Below the line" />
</bs:bsui-stack>

垂直線

行を引き伸ばすと区切り線に高さが加わるため、署名行に適しています。

14 March 2026
Dennis Kastrup
6 minute read
HTML
<bs:bsui-stack direction="row" gap="2" align="stretch" justify="center">
  <bs:bsui-text content="14 March 2026" variant="muted" tag="span" />
  <bs:bsui-separator orientation="vertical" />
  <bs:bsui-text content="Dennis Kastrup" variant="muted" tag="span" />
  <bs:bsui-separator orientation="vertical" />
  <bs:bsui-text content="6 minute read" variant="muted" tag="span" />
</bs:bsui-stack>

カード内の行

各グループに見出しを付けずに設定を分けます。

Notifications

Choose what lands in your inbox.

HTML
<bs:bsui-card>
  <bs:bsui-card-header>
    <bs:bsui-card-title label="Notifications" />
    <bs:bsui-card-description label="Choose what lands in your inbox." />
  </bs:bsui-card-header>
  <bs:bsui-card-content>
    <bs:bsui-switch label="A deploy finished" defaultChecked="true" />
    <bs:bsui-separator />
    <bs:bsui-switch label="A build failed" defaultChecked="true" />
    <bs:bsui-separator />
    <bs:bsui-switch label="Weekly usage summary" />
  </bs:bsui-card-content>
</bs:bsui-card>

属性

属性タイプデフォルト
orientation horizontal vertical horizontal