ページヘッダーはアプリ内ページの先頭にあり、現在位置、ページの内容、ここでできることを示します。先頭側にタイトル、末尾側にアクションを配置し、その上に上位階層へのリンクを置きます。
ページヘッダー
<header class="container-inline flex flex-col gap-sm"> <nav aria-label="Breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a class="breadcrumb-link" href="#">Projects</a></li> <li class="breadcrumb-item"><a class="breadcrumb-link" href="#">Atlas</a></li> <li class="breadcrumb-item"> <a class="breadcrumb-link" href="#" aria-current="page">Deployments</a> </li> </ol> </nav> <div class="flex flex-wrap items-end justify-between gap-md"> <div class="flex flex-col gap-3xs min-w(0)"> <h1 class="heading heading-xl">Deployments</h1> <p class="m(0) fg-text-muted">Every build of Atlas, newest first.</p> </div> <div class="flex flex-wrap gap-xs"> <button type="button" class="btn"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M8.5 9L8.4994 1.9755A0.5 0.5 0 0 0 7.5054 1.9266L7.5 2L7.5014 9.0379A0.5007 0.5007 0 0 0 7.5892 9.285A0.7044 0.7044 0 0 0 8.4108 9.285A0.4996 0.4996 0 0 0 8.5 9Z" fill="currentColor" stroke="none" fill-rule="evenodd" /><path d="M5 6L7.8586 8.8586A0.2 0.2 0 0 0 8.1414 8.8586L11 6" /><path d="M2.5 10.5L2.5 12.5A1 1 0 0 0 3.5 13.5L12.5 13.5A1 1 0 0 0 13.5 12.5L13.5 10.5" /> </svg>Export </button> <button type="button" class="btn btn-primary"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M3 8L13 8" /><path d="M8 3L8 13" /> </svg>New deployment </button> </div> </div></header>import DownloadIcon from '@master/icons-react/native/16/soft/download'import PlusIcon from '@master/icons-react/native/16/soft/plus'<header className="container-inline flex flex-col gap-sm"> <nav aria-label="Breadcrumb"> <ol className="breadcrumb"> <li className="breadcrumb-item"><a className="breadcrumb-link" href="#">Projects</a></li> <li className="breadcrumb-item"><a className="breadcrumb-link" href="#">Atlas</a></li> <li className="breadcrumb-item"> <a className="breadcrumb-link" href="#" aria-current="page">Deployments</a> </li> </ol> </nav> <div className="flex flex-wrap items-end justify-between gap-md"> <div className="flex flex-col gap-3xs min-w(0)"> <h1 className="heading heading-xl">Deployments</h1> <p className="m(0) fg-text-muted">Every build of Atlas, newest first.</p> </div> <div className="flex flex-wrap gap-xs"> <button type="button" className="btn"><DownloadIcon className="icon" />Export</button> <button type="button" className="btn btn-primary"> <PlusIcon className="icon" />New deployment </button> </div> </div></header><script> import DownloadIcon from '@master/icons-svelte/native/16/soft/download' import PlusIcon from '@master/icons-svelte/native/16/soft/plus'</script><header class="container-inline flex flex-col gap-sm"> <nav aria-label="Breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a class="breadcrumb-link" href="#">Projects</a></li> <li class="breadcrumb-item"><a class="breadcrumb-link" href="#">Atlas</a></li> <li class="breadcrumb-item"> <a class="breadcrumb-link" href="#" aria-current="page">Deployments</a> </li> </ol> </nav> <div class="flex flex-wrap items-end justify-between gap-md"> <div class="flex flex-col gap-3xs min-w(0)"> <h1 class="heading heading-xl">Deployments</h1> <p class="m(0) fg-text-muted">Every build of Atlas, newest first.</p> </div> <div class="flex flex-wrap gap-xs"> <button type="button" class="btn"><DownloadIcon class="icon" />Export</button> <button type="button" class="btn btn-primary"><PlusIcon class="icon" />New deployment</button> </div> </div></header><script setup>import DownloadIcon from '@master/icons-vue/native/16/soft/download'import PlusIcon from '@master/icons-vue/native/16/soft/plus'</script><template> <header class="container-inline flex flex-col gap-sm"> <nav aria-label="Breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a class="breadcrumb-link" href="#">Projects</a></li> <li class="breadcrumb-item"><a class="breadcrumb-link" href="#">Atlas</a></li> <li class="breadcrumb-item"> <a class="breadcrumb-link" href="#" aria-current="page">Deployments</a> </li> </ol> </nav> <div class="flex flex-wrap items-end justify-between gap-md"> <div class="flex flex-col gap-3xs min-w(0)"> <h1 class="heading heading-xl">Deployments</h1> <p class="m(0) fg-text-muted">Every build of Atlas, newest first.</p> </div> <div class="flex flex-wrap gap-xs"> <button type="button" class="btn"><DownloadIcon class="icon" />Export</button> <button type="button" class="btn btn-primary"> <PlusIcon class="icon" />New deployment </button> </div> </div> </header></template>ブロックはコピーして使えるマークアップです。配置先のページの文字色と文字サイズを引き継ぎます。プレビューでは body にfg-text-body text-smを設定しています。各ブロックはサイズコンテナーなので、幅の広いページでも、サイドバーほどの幅しかない場所やダイアログ内でも、自身の幅に応じてレイアウトが変わります。
#構成
- 上位階層へのリンク。 第2階層以降のページでは、タイトルの上にパンくずリストを配置します。
- タイトルと説明の一文。 見出しをページの
<h1>にし、下の一覧に何が並ぶかを控えめな文字色の一文で伝えます。 - アクション。 ページの主目的にあたる操作にはプライマリボタンを使い、行の末尾に配置します。ほかの操作はその前に既定のボタンで並べます。
- 折り返す2分割レイアウト。
flex flex-wrap items-end justify-between gap-mdにより、狭い画面ではアクションが順序を保ったままタイトルの下に移ります。タイトルの列にmin-w(0)を指定すると、長いタイトルは折り返され、アクションが表示領域から押し出されません。
ページヘッダーはページ内の領域で、コンテンツと一緒にスクロールします。画面上部に留まるバーにはナビゲーションバーを使います。
#詳細ページ向け
個別のプロジェクト、人物、ファイルのページでは、先頭に、対象を表すマーク、名前、ステータスと、基本情報をまとめた一行を配置します。補助アクションは控えめなボタン1つで開くメニューにまとめ、ヘッダーの下のタブで表示を切り替えます。
詳細ページ向け
<header class="container-inline flex flex-col gap-md"> <div class="flex flex-wrap items-center justify-between gap-md"> <div class="flex items-center gap-sm min-w(0)"> <span class="avatar avatar-lg avatar-square" aria-hidden="true">A</span> <div class="flex flex-col gap-3xs min-w(0)"> <div class="flex flex-wrap items-center gap-xs"> <h1 class="heading heading-lg">Atlas</h1> <span class="badge badge-success badge-dot">Ready</span> </div> <p class="m(0) fg-text-muted"> atlas.dev · deployed 2 hours ago from <code class="code">main</code> </p> </div> </div> <div class="flex flex-wrap gap-xs"> <a class="btn" href="#"> Visit<svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M11.9111 3.508A0.4992 0.4992 0 0 0 11.6465 3.6465L3.6295 11.6642A0.5 0.5 0 0 0 4.2978 12.4016L4.3535 12.3535L12.3793 4.3258A0.5 0.5 0 0 0 12.492 4.0889A0.7044 0.7044 0 0 0 11.9111 3.508Z" fill="currentColor" stroke="none" fill-rule="evenodd" /><path d="M4 4L11.8 4A0.2 0.2 0 0 1 12 4.2L12 12" /> </svg> </a> <button type="button" class="btn btn-quiet btn-square btn-hang-end" popovertarget="ph-more" aria-label="More actions"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="3.5" cy="8" r="1.05" fill="currentColor" stroke="none" /><circle cx="8" cy="8" r="1.05" fill="currentColor" stroke="none" /><circle cx="12.5" cy="8" r="1.05" fill="currentColor" stroke="none" /> </svg> </button> <div class="menu menu-end" id="ph-more" popover> <button type="button" class="menu-item" popovertarget="ph-more" popovertargetaction="hide"> Redeploy </button> <button type="button" class="menu-item" popovertarget="ph-more" popovertargetaction="hide"> Copy address </button> <hr class="menu-separator"> <button type="button" class="menu-item menu-item-danger" popovertarget="ph-more" popovertargetaction="hide"> Delete project </button> </div> </div> </div> <nav class="tabs" aria-label="Project"> <a class="tabs-item" href="#" aria-current="page">Overview</a> <a class="tabs-item" href="#">Deployments <span class="badge badge-sm badge-pill">37</span></a> <a class="tabs-item" href="#">Analytics</a> <a class="tabs-item" href="#">Settings</a> </nav></header>import ArrowUpRightIcon from '@master/icons-react/native/16/soft/arrow-up-right'import MoreHorizontalIcon from '@master/icons-react/native/16/soft/more-horizontal'<header className="container-inline flex flex-col gap-md"> <div className="flex flex-wrap items-center justify-between gap-md"> <div className="flex items-center gap-sm min-w(0)"> <span className="avatar avatar-lg avatar-square" aria-hidden="true">A</span> <div className="flex flex-col gap-3xs min-w(0)"> <div className="flex flex-wrap items-center gap-xs"> <h1 className="heading heading-lg">Atlas</h1> <span className="badge badge-success badge-dot">Ready</span> </div> <p className="m(0) fg-text-muted"> atlas.dev · deployed 2 hours ago from <code className="code">main</code> </p> </div> </div> <div className="flex flex-wrap gap-xs"> <a className="btn" href="#">Visit<ArrowUpRightIcon className="icon" /></a> <button type="button" className="btn btn-quiet btn-square btn-hang-end" popoverTarget="ph-more" aria-label="More actions"> <MoreHorizontalIcon className="icon" /> </button> <div className="menu menu-end" id="ph-more" popover=""> <button type="button" className="menu-item" popoverTarget="ph-more" popoverTargetAction="hide"> Redeploy </button> <button type="button" className="menu-item" popoverTarget="ph-more" popoverTargetAction="hide"> Copy address </button> <hr className="menu-separator" /> <button type="button" className="menu-item menu-item-danger" popoverTarget="ph-more" popoverTargetAction="hide"> Delete project </button> </div> </div> </div> <nav className="tabs" aria-label="Project"> <a className="tabs-item" href="#" aria-current="page">Overview</a> <a className="tabs-item" href="#"> Deployments <span className="badge badge-sm badge-pill">37</span> </a> <a className="tabs-item" href="#">Analytics</a> <a className="tabs-item" href="#">Settings</a> </nav></header><script> import ArrowUpRightIcon from '@master/icons-svelte/native/16/soft/arrow-up-right' import MoreHorizontalIcon from '@master/icons-svelte/native/16/soft/more-horizontal'</script><header class="container-inline flex flex-col gap-md"> <div class="flex flex-wrap items-center justify-between gap-md"> <div class="flex items-center gap-sm min-w(0)"> <span class="avatar avatar-lg avatar-square" aria-hidden="true">A</span> <div class="flex flex-col gap-3xs min-w(0)"> <div class="flex flex-wrap items-center gap-xs"> <h1 class="heading heading-lg">Atlas</h1> <span class="badge badge-success badge-dot">Ready</span> </div> <p class="m(0) fg-text-muted"> atlas.dev · deployed 2 hours ago from <code class="code">main</code> </p> </div> </div> <div class="flex flex-wrap gap-xs"> <a class="btn" href="#">Visit<ArrowUpRightIcon class="icon" /></a> <button type="button" class="btn btn-quiet btn-square btn-hang-end" popovertarget="ph-more" aria-label="More actions"> <MoreHorizontalIcon class="icon" /> </button> <div class="menu menu-end" id="ph-more" popover> <button type="button" class="menu-item" popovertarget="ph-more" popovertargetaction="hide"> Redeploy </button> <button type="button" class="menu-item" popovertarget="ph-more" popovertargetaction="hide"> Copy address </button> <hr class="menu-separator"> <button type="button" class="menu-item menu-item-danger" popovertarget="ph-more" popovertargetaction="hide"> Delete project </button> </div> </div> </div> <nav class="tabs" aria-label="Project"> <a class="tabs-item" href="#" aria-current="page">Overview</a> <a class="tabs-item" href="#">Deployments <span class="badge badge-sm badge-pill">37</span></a> <a class="tabs-item" href="#">Analytics</a> <a class="tabs-item" href="#">Settings</a> </nav></header><script setup>import ArrowUpRightIcon from '@master/icons-vue/native/16/soft/arrow-up-right'import MoreHorizontalIcon from '@master/icons-vue/native/16/soft/more-horizontal'</script><template> <header class="container-inline flex flex-col gap-md"> <div class="flex flex-wrap items-center justify-between gap-md"> <div class="flex items-center gap-sm min-w(0)"> <span class="avatar avatar-lg avatar-square" aria-hidden="true">A</span> <div class="flex flex-col gap-3xs min-w(0)"> <div class="flex flex-wrap items-center gap-xs"> <h1 class="heading heading-lg">Atlas</h1> <span class="badge badge-success badge-dot">Ready</span> </div> <p class="m(0) fg-text-muted"> atlas.dev · deployed 2 hours ago from <code class="code">main</code> </p> </div> </div> <div class="flex flex-wrap gap-xs"> <a class="btn" href="#">Visit<ArrowUpRightIcon class="icon" /></a> <button type="button" class="btn btn-quiet btn-square btn-hang-end" popovertarget="ph-more" aria-label="More actions"> <MoreHorizontalIcon class="icon" /> </button> <div class="menu menu-end" id="ph-more" popover> <button type="button" class="menu-item" popovertarget="ph-more" popovertargetaction="hide"> Redeploy </button> <button type="button" class="menu-item" popovertarget="ph-more" popovertargetaction="hide"> Copy address </button> <hr class="menu-separator"> <button type="button" class="menu-item menu-item-danger" popovertarget="ph-more" popovertargetaction="hide"> Delete project </button> </div> </div> </div> <nav class="tabs" aria-label="Project"> <a class="tabs-item" href="#" aria-current="page">Overview</a> <a class="tabs-item" href="#"> Deployments <span class="badge badge-sm badge-pill">37</span> </a> <a class="tabs-item" href="#">Analytics</a> <a class="tabs-item" href="#">Settings</a> </nav> </header></template>#基本情報付き
レコードの基本情報はタイトルの下に並べます。細い区切り線でタイトルと分け、折り返し可能なflexの行に説明リストとして配置します。各項目では、小さなラベルの下に値を通常のテキスト色で表示します。
基本情報付き
<header class="container-inline flex flex-col gap-lg"> <div class="flex flex-wrap items-start justify-between gap-md"> <div class="flex flex-col gap-xs min-w(0)"> <a class="link link-quiet fg-text-muted self-start" href="#"> <span aria-hidden="true">←</span>All invoices </a> <div class="flex flex-wrap items-center gap-xs"> <h1 class="heading heading-xl">Invoice 2026-0042</h1> <span class="badge badge-warning badge-dot">Due in 5 days</span> </div> </div> <div class="flex flex-wrap gap-xs"> <button type="button" class="btn">Download PDF</button> <button type="button" class="btn btn-primary">Pay $240.00</button> </div> </div> <dl class="flex flex-wrap gap-lg col-gap-2xl m(0) pt-md bt(1) bt-solid b-line-hair"> <div class="flex flex-col gap-3xs"> <dt class="text-xs fg-text-muted">Billed to</dt> <dd class="m(0) fg-text-strong">Northwind Ltd</dd> </div> <div class="flex flex-col gap-3xs"> <dt class="text-xs fg-text-muted">Issued</dt> <dd class="m(0) fg-text-strong"><time datetime="2026-11-01">1 November 2026</time></dd> </div> <div class="flex flex-col gap-3xs"> <dt class="text-xs fg-text-muted">Due</dt> <dd class="m(0) fg-text-strong"><time datetime="2026-11-16">16 November 2026</time></dd> </div> <div class="flex flex-col gap-3xs"> <dt class="text-xs fg-text-muted">Amount</dt> <dd class="m(0) fg-text-strong">$240.00</dd> </div> </dl></header><header className="container-inline flex flex-col gap-lg"> <div className="flex flex-wrap items-start justify-between gap-md"> <div className="flex flex-col gap-xs min-w(0)"> <a className="link link-quiet fg-text-muted self-start" href="#"> <span aria-hidden="true">←</span>All invoices </a> <div className="flex flex-wrap items-center gap-xs"> <h1 className="heading heading-xl">Invoice 2026-0042</h1> <span className="badge badge-warning badge-dot">Due in 5 days</span> </div> </div> <div className="flex flex-wrap gap-xs"> <button type="button" className="btn">Download PDF</button> <button type="button" className="btn btn-primary">Pay $240.00</button> </div> </div> <dl className="flex flex-wrap gap-lg col-gap-2xl m(0) pt-md bt(1) bt-solid b-line-hair"> <div className="flex flex-col gap-3xs"> <dt className="text-xs fg-text-muted">Billed to</dt> <dd className="m(0) fg-text-strong">Northwind Ltd</dd> </div> <div className="flex flex-col gap-3xs"> <dt className="text-xs fg-text-muted">Issued</dt> <dd className="m(0) fg-text-strong"><time dateTime="2026-11-01">1 November 2026</time></dd> </div> <div className="flex flex-col gap-3xs"> <dt className="text-xs fg-text-muted">Due</dt> <dd className="m(0) fg-text-strong"><time dateTime="2026-11-16">16 November 2026</time></dd> </div> <div className="flex flex-col gap-3xs"> <dt className="text-xs fg-text-muted">Amount</dt> <dd className="m(0) fg-text-strong">$240.00</dd> </div> </dl></header><header class="container-inline flex flex-col gap-lg"> <div class="flex flex-wrap items-start justify-between gap-md"> <div class="flex flex-col gap-xs min-w(0)"> <a class="link link-quiet fg-text-muted self-start" href="#"> <span aria-hidden="true">←</span>All invoices </a> <div class="flex flex-wrap items-center gap-xs"> <h1 class="heading heading-xl">Invoice 2026-0042</h1> <span class="badge badge-warning badge-dot">Due in 5 days</span> </div> </div> <div class="flex flex-wrap gap-xs"> <button type="button" class="btn">Download PDF</button> <button type="button" class="btn btn-primary">Pay $240.00</button> </div> </div> <dl class="flex flex-wrap gap-lg col-gap-2xl m(0) pt-md bt(1) bt-solid b-line-hair"> <div class="flex flex-col gap-3xs"> <dt class="text-xs fg-text-muted">Billed to</dt> <dd class="m(0) fg-text-strong">Northwind Ltd</dd> </div> <div class="flex flex-col gap-3xs"> <dt class="text-xs fg-text-muted">Issued</dt> <dd class="m(0) fg-text-strong"><time datetime="2026-11-01">1 November 2026</time></dd> </div> <div class="flex flex-col gap-3xs"> <dt class="text-xs fg-text-muted">Due</dt> <dd class="m(0) fg-text-strong"><time datetime="2026-11-16">16 November 2026</time></dd> </div> <div class="flex flex-col gap-3xs"> <dt class="text-xs fg-text-muted">Amount</dt> <dd class="m(0) fg-text-strong">$240.00</dd> </div> </dl></header><template> <header class="container-inline flex flex-col gap-lg"> <div class="flex flex-wrap items-start justify-between gap-md"> <div class="flex flex-col gap-xs min-w(0)"> <a class="link link-quiet fg-text-muted self-start" href="#"> <span aria-hidden="true">←</span>All invoices </a> <div class="flex flex-wrap items-center gap-xs"> <h1 class="heading heading-xl">Invoice 2026-0042</h1> <span class="badge badge-warning badge-dot">Due in 5 days</span> </div> </div> <div class="flex flex-wrap gap-xs"> <button type="button" class="btn">Download PDF</button> <button type="button" class="btn btn-primary">Pay $240.00</button> </div> </div> <dl class="flex flex-wrap gap-lg col-gap-2xl m(0) pt-md bt(1) bt-solid b-line-hair"> <div class="flex flex-col gap-3xs"> <dt class="text-xs fg-text-muted">Billed to</dt> <dd class="m(0) fg-text-strong">Northwind Ltd</dd> </div> <div class="flex flex-col gap-3xs"> <dt class="text-xs fg-text-muted">Issued</dt> <dd class="m(0) fg-text-strong"><time datetime="2026-11-01">1 November 2026</time></dd> </div> <div class="flex flex-col gap-3xs"> <dt class="text-xs fg-text-muted">Due</dt> <dd class="m(0) fg-text-strong"><time datetime="2026-11-16">16 November 2026</time></dd> </div> <div class="flex flex-col gap-3xs"> <dt class="text-xs fg-text-muted">Amount</dt> <dd class="m(0) fg-text-strong">$240.00</dd> </div> </dl> </header></template>#アクセシビリティ
- ヘッダーは
<main>内の<header>で、タイトルはページで唯一の<h1>です。 - ステータスはバッジ内に文字で表示し、色だけに頼らず伝えます。
- レコード名の横にある文字マークは名前と情報が重複するため、支援技術から隠します。
- アイコンボタンにはアクセシブルな名前を付けます。ボタンで開くメニューはボタンの一覧で、Escapeキーで閉じられます。
- 基本情報は
<dl>で記述します。各値は対応するラベルとともに読み上げられます。
#関連項目
- パンくずリスト現在のページまでの階層をリンクの一覧で示し、各階層に戻れるようにします。
- 見出しページの前景色で表示する見出しと、その上のラベル、下の導入文。
- ボタン面からわずかに浮いた操作要素です。ポインターを重ねるとさらに浮き上がり、押すと沈み込みます。
- アバター人物やチームを写真やイニシャルで表し、単独でも重ねても使えます。
- バッジステータス、カテゴリー、件数を示す小さなチップ。色に意味があるとき以外はニュートラルな色で表示します。
- コード文字列をそのまま等幅フォントで表示します。インラインとブロックに対応します。
- タブ細い罫線に沿ってラベルを並べ、現在のタブをインク色の下線で示します。
- メニューボタンに沿って開く、アクション一覧のポップオーバーです。
- リンク周囲の文と同じ文字色で表示する、移動先を持つテキストリンク。