탐색

v2.1.0
애플리케이션 블록

페이지 헤더

앱 페이지 상단에서 현재 위치, 페이지의 용도, 할 수 있는 작업을 보여 주는 영역입니다.

페이지 헤더는 앱 페이지 상단에서 현재 위치, 페이지의 용도, 여기서 할 수 있는 작업을 보여 줍니다. 제목은 시작 쪽에, 작업 버튼은 끝 쪽에 배치하고 그 위에 돌아갈 경로를 표시합니다.

페이지 헤더

<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 클래스를 설정합니다. 각 블록은 크기 컨테이너이므로 넓은 페이지, 사이드바만큼 좁은 공간, 대화 상자 등 어디에 놓이든 자체 너비에 따라 배치가 바뀝니다.

#구성 요소

  • 돌아갈 경로. 두 단계 이상 들어간 페이지에서는 제목 위에 브레드크럼을 배치합니다.
  • 제목과 한 줄 설명. 페이지의 <h1>로 제목을 배치하고, 아래 목록에 어떤 항목이 있는지 눈에 덜 띄는 색의 한 문장으로 설명합니다.
  • 작업 버튼. 페이지의 주된 작업을 실행하는 주요 버튼은 행 맨 끝에 놓고, 나머지 작업을 실행하는 기본 버튼은 그 앞에 배치합니다.
  • 줄바꿈되는 양쪽 배치. flex flex-wrap items-end justify-between gap-md를 적용하면 화면이 좁을 때 작업 버튼이 순서를 유지한 채 제목 아래로 내려갑니다. 제목 열에 min-w(0)를 적용하면 긴 제목이 작업 버튼을 밀어내지 않고 줄바꿈됩니다.

페이지 헤더는 콘텐츠와 함께 스크롤되는 페이지 영역입니다. 스크롤해도 제자리에 머무는 바에는 내비게이션 바를 사용하세요.

#개별 항목 헤더

프로젝트, 사람 또는 파일의 상세 페이지는 항목을 나타내는 표식, 이름, 상태, 주요 정보를 담은 한 줄로 시작합니다. 보조 작업은 눈에 덜 띄는 버튼 하나로 여는 메뉴에 넣고, 헤더 아래의 탭으로 항목의 각 보기를 전환합니다.

개별 항목 헤더

<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>로 구성하며, 스크린 리더는 각 값을 해당 레이블과 함께 읽어 줍니다.