탐색

v2.1.0
본문

아이콘 프레임

제목 옆에 아이콘을 크기에 맞게 담는 작은 오목한 영역입니다.

이 페이지의 내용

아이콘 프레임은 아이콘이 놓이는 작은 오목한 영역입니다. 제목 옆, 빈 상태의 맨 위, 기능 소개 행 등에 사용합니다. 아이콘을 정해진 크기로 가운데에 배치하고 재질을 부여하므로, 아이콘이 따로 떨어진 글리프가 아니라 하나의 표시로 읽힙니다. 프레임은 장식 요소이며 컨트롤이 아닙니다. aria-hidden으로 숨기고 그 의미는 옆의 텍스트로 전달하세요.

아이콘 프레임

<span class="icon-frame" aria-hidden="true">  <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round">    <path d="M10.6071 2.4206L16.8571 5.8928A1.25 1.25 0 0 1 17.5 6.9855L17.5 13.4312A1.25 1.25 0 0 1 16.857 14.5239L10.607 17.9961A1.25 1.25 0 0 1 9.393 17.9961L3.143 14.5239A1.25 1.25 0 0 1 2.5 13.4312L2.5 6.9855A1.25 1.25 0 0 1 3.1429 5.8928L9.3929 2.4206A1.25 1.25 0 0 1 10.6071 2.4206Z" /><path d="M5.7036 4.4702L6.8934 3.8092L13.75 7.6183L16.857 5.8928A1.2493 1.2493 0 0 1 17.4998 6.9651L10.625 10.7844V17.9861A1.2511 1.2511 0 0 1 9.375 17.9861V10.7844L2.5002 6.9651A1.25 1.25 0 0 1 3.1435 5.8925L10 9.7017L12.4631 8.3333L5.9092 4.6906A0.6265 0.6265 0 0 1 5.7036 4.4702Z" fill="currentColor" stroke="none" fill-rule="evenodd" />  </svg></span>
import PackageIcon from '@master/icons-react/native/20/soft/package'<span className="icon-frame" aria-hidden="true"><PackageIcon className="icon" /></span>
<script>  import PackageIcon from '@master/icons-svelte/native/20/soft/package'</script><span class="icon-frame" aria-hidden="true"><PackageIcon class="icon" /></span>
<script setup>import PackageIcon from '@master/icons-vue/native/20/soft/package'</script><template>  <span class="icon-frame" aria-hidden="true"><PackageIcon class="icon" /></span></template>

#크기

기본 프레임은 48px이며 아이콘은 20px입니다. 크기마다 해당 역할의 모서리 반지름을 사용하므로 어떤 크기에서도 같은 모양으로 보입니다. 32px 프레임에는 작은 컨트롤의 모서리 반지름을, 40px에는 기본 컨트롤의 반지름을, 48px에는 큰 컨트롤의 반지름을, 64px에는 표면의 반지름을 적용합니다.

크기

<span class="icon-frame icon-frame-xs" aria-hidden="true">  <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">    <path d="M8.4856 1.9365L13.4856 4.7142A1 1 0 0 1 14 5.5884L14 10.7449A1 1 0 0 1 13.4857 11.6191L8.4857 14.3969A1 1 0 0 1 7.5143 14.3969L2.5143 11.6191A1 1 0 0 1 2 10.7449L2 5.5884A1 1 0 0 1 2.5144 4.7142L7.5144 1.9365A1 1 0 0 1 8.4856 1.9365Z" /><path d="M2.0001 5.572A1 1 0 0 1 2.5148 4.714L8 7.7613L13.4856 4.7142A1 1 0 0 1 13.9999 5.572L8.5 8.6275V14.389A1.0011 1.0011 0 0 1 7.5 14.389V8.6275L2.0001 5.572Z" fill="currentColor" stroke="none" fill-rule="evenodd" />  </svg></span><span class="icon-frame icon-frame-sm" aria-hidden="true">  <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round">    <path d="M10.6071 2.4206L16.8571 5.8928A1.25 1.25 0 0 1 17.5 6.9855L17.5 13.4312A1.25 1.25 0 0 1 16.857 14.5239L10.607 17.9961A1.25 1.25 0 0 1 9.393 17.9961L3.143 14.5239A1.25 1.25 0 0 1 2.5 13.4312L2.5 6.9855A1.25 1.25 0 0 1 3.1429 5.8928L9.3929 2.4206A1.25 1.25 0 0 1 10.6071 2.4206Z" /><path d="M5.7036 4.4702L6.8934 3.8092L13.75 7.6183L16.857 5.8928A1.2493 1.2493 0 0 1 17.4998 6.9651L10.625 10.7844V17.9861A1.2511 1.2511 0 0 1 9.375 17.9861V10.7844L2.5002 6.9651A1.25 1.25 0 0 1 3.1435 5.8925L10 9.7017L12.4631 8.3333L5.9092 4.6906A0.6265 0.6265 0 0 1 5.7036 4.4702Z" fill="currentColor" stroke="none" fill-rule="evenodd" />  </svg></span><span class="icon-frame" aria-hidden="true">  <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round">    <path d="M10.6071 2.4206L16.8571 5.8928A1.25 1.25 0 0 1 17.5 6.9855L17.5 13.4312A1.25 1.25 0 0 1 16.857 14.5239L10.607 17.9961A1.25 1.25 0 0 1 9.393 17.9961L3.143 14.5239A1.25 1.25 0 0 1 2.5 13.4312L2.5 6.9855A1.25 1.25 0 0 1 3.1429 5.8928L9.3929 2.4206A1.25 1.25 0 0 1 10.6071 2.4206Z" /><path d="M5.7036 4.4702L6.8934 3.8092L13.75 7.6183L16.857 5.8928A1.2493 1.2493 0 0 1 17.4998 6.9651L10.625 10.7844V17.9861A1.2511 1.2511 0 0 1 9.375 17.9861V10.7844L2.5002 6.9651A1.25 1.25 0 0 1 3.1435 5.8925L10 9.7017L12.4631 8.3333L5.9092 4.6906A0.6265 0.6265 0 0 1 5.7036 4.4702Z" fill="currentColor" stroke="none" fill-rule="evenodd" />  </svg></span><span class="icon-frame icon-frame-lg" aria-hidden="true">  <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">    <path d="M12.7285 2.9047L20.2285 7.0714A1.5 1.5 0 0 1 21 8.3826L21 16.1174A1.5 1.5 0 0 1 20.2285 17.4286L12.7285 21.5953A1.5 1.5 0 0 1 11.2715 21.5953L3.7715 17.4286A1.5 1.5 0 0 1 3 16.1174L3 8.3826A1.5 1.5 0 0 1 3.7715 7.0714L11.2715 2.9047A1.5 1.5 0 0 1 12.7285 2.9047Z" /><path d="M6.8444 5.3642L8.2722 4.571L16.5 9.142L20.2284 7.0714A1.4996 1.4996 0 0 1 20.9998 8.3581L12.75 12.9413V21.5833A1.501 1.501 0 0 1 11.25 21.5833V12.9413L3.0002 8.3581A1.5002 1.5002 0 0 1 3.7722 7.071L12 11.642L14.9556 10L7.0911 5.6287A0.7489 0.7489 0 0 1 6.8444 5.3642Z" fill="currentColor" stroke="none" fill-rule="evenodd" />  </svg></span>
import PackageIcon16 from '@master/icons-react/native/16/soft/package'import PackageIcon20 from '@master/icons-react/native/20/soft/package'import PackageIcon24 from '@master/icons-react/native/24/soft/package'<>  <span className="icon-frame icon-frame-xs" aria-hidden="true">    <PackageIcon16 className="icon" />  </span>  <span className="icon-frame icon-frame-sm" aria-hidden="true">    <PackageIcon20 className="icon" />  </span>  <span className="icon-frame" aria-hidden="true"><PackageIcon20 className="icon" /></span>  <span className="icon-frame icon-frame-lg" aria-hidden="true">    <PackageIcon24 className="icon" />  </span></>
<script>  import PackageIcon16 from '@master/icons-svelte/native/16/soft/package'  import PackageIcon20 from '@master/icons-svelte/native/20/soft/package'  import PackageIcon24 from '@master/icons-svelte/native/24/soft/package'</script><span class="icon-frame icon-frame-xs" aria-hidden="true"><PackageIcon16 class="icon" /></span><span class="icon-frame icon-frame-sm" aria-hidden="true"><PackageIcon20 class="icon" /></span><span class="icon-frame" aria-hidden="true"><PackageIcon20 class="icon" /></span><span class="icon-frame icon-frame-lg" aria-hidden="true"><PackageIcon24 class="icon" /></span>
<script setup>import PackageIcon16 from '@master/icons-vue/native/16/soft/package'import PackageIcon20 from '@master/icons-vue/native/20/soft/package'import PackageIcon24 from '@master/icons-vue/native/24/soft/package'</script><template>  <span class="icon-frame icon-frame-xs" aria-hidden="true"><PackageIcon16 class="icon" /></span>  <span class="icon-frame icon-frame-sm" aria-hidden="true"><PackageIcon20 class="icon" /></span>  <span class="icon-frame" aria-hidden="true"><PackageIcon20 class="icon" /></span>  <span class="icon-frame icon-frame-lg" aria-hidden="true"><PackageIcon24 class="icon" /></span></template>

#표면과 톤

icon-frame-raised는 프레임을 오목한 영역 대신 작은 시트로 만듭니다. 트레이나 오목한 영역 위에 놓이는 프레임에 사용합니다. 상태 톤은 같은 내용을 설명하는 텍스트와 함께 오목한 영역에 해당 색상을 옅게 입히며, icon-frame-category는 주변에 지정된 카테고리 색상을 사용합니다.

표면과 톤

<span class="icon-frame icon-frame-raised" aria-hidden="true">  <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round">    <path d="M10.625 11L10.6242 2.4693A0.625 0.625 0 0 0 9.3818 2.4083L9.375 2.5L9.377 11.05A0.6255 0.6255 0 0 0 9.4989 11.3735Q9.7145 11.5422 10 11.5422Q10.2855 11.5422 10.5011 11.3735A0.625 0.625 0 0 0 10.625 11Z" fill="currentColor" stroke="none" fill-rule="evenodd" /><path d="M6.5 7.5L9.8586 10.8586A0.2 0.2 0 0 0 10.1414 10.8586L13.5 7.5" /><path d="M3 13.5L3 15.75A1.25 1.25 0 0 0 4.25 17L15.75 17A1.25 1.25 0 0 0 17 15.75L17 13.5" />  </svg></span><span class="icon-frame icon-frame-info" aria-hidden="true">  <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round">    <circle cx="10" cy="10" r="7.5" /><circle cx="10" cy="6" r="0.625" fill="currentColor" stroke="none" /><path d="M10 10L10 14" />  </svg></span><span class="icon-frame icon-frame-success" aria-hidden="true">  <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round">    <path d="M3.5 10L7.8545 14.3545A0.2 0.2 0 0 0 8.1413 14.3504L16.5 5.5" />  </svg></span><span class="icon-frame icon-frame-warning" aria-hidden="true">  <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round">    <path d="M10.9696 4.81L16.6324 15.3806A1.1 1.1 0 0 1 15.6628 17L4.3372 17A1.1 1.1 0 0 1 3.3676 15.3806L9.0304 4.81A1.1 1.1 0 0 1 10.9696 4.81Z" /><path d="M10 8L10 11.5" /><circle cx="10" cy="14.5" r="0.625" fill="currentColor" stroke="none" />  </svg></span><span class="icon-frame icon-frame-danger" aria-hidden="true">  <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round">    <circle cx="10" cy="10" r="7.5" transform="rotate(180 10 10)" /><circle cx="10" cy="6" r="0.625" fill="currentColor" stroke="none" transform="rotate(180 10 10)" /><path d="M10 10L10 14" transform="rotate(180 10 10)" />  </svg></span><span class="icon-frame icon-frame-category category-violet" aria-hidden="true">  <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round">    <circle cx="8.75" cy="8.75" r="5.75" /><path d="M12.8159 12.8159L17.5 17.5" />  </svg></span>
import DownloadIcon from '@master/icons-react/native/20/soft/download'import InfoCircleIcon from '@master/icons-react/native/20/soft/info-circle'import CheckIcon from '@master/icons-react/native/20/soft/check'import AlertTriangleIcon from '@master/icons-react/native/20/soft/alert-triangle'import AlertCircleIcon from '@master/icons-react/native/20/soft/alert-circle'import SearchIcon from '@master/icons-react/native/20/soft/search'<>  <span className="icon-frame icon-frame-raised" aria-hidden="true">    <DownloadIcon className="icon" />  </span>  <span className="icon-frame icon-frame-info" aria-hidden="true">    <InfoCircleIcon className="icon" />  </span>  <span className="icon-frame icon-frame-success" aria-hidden="true">    <CheckIcon className="icon" />  </span>  <span className="icon-frame icon-frame-warning" aria-hidden="true">    <AlertTriangleIcon className="icon" />  </span>  <span className="icon-frame icon-frame-danger" aria-hidden="true">    <AlertCircleIcon className="icon" />  </span>  <span className="icon-frame icon-frame-category category-violet" aria-hidden="true">    <SearchIcon className="icon" />  </span></>
<script>  import DownloadIcon from '@master/icons-svelte/native/20/soft/download'  import InfoCircleIcon from '@master/icons-svelte/native/20/soft/info-circle'  import CheckIcon from '@master/icons-svelte/native/20/soft/check'  import AlertTriangleIcon from '@master/icons-svelte/native/20/soft/alert-triangle'  import AlertCircleIcon from '@master/icons-svelte/native/20/soft/alert-circle'  import SearchIcon from '@master/icons-svelte/native/20/soft/search'</script><span class="icon-frame icon-frame-raised" aria-hidden="true"><DownloadIcon class="icon" /></span><span class="icon-frame icon-frame-info" aria-hidden="true"><InfoCircleIcon class="icon" /></span><span class="icon-frame icon-frame-success" aria-hidden="true"><CheckIcon class="icon" /></span><span class="icon-frame icon-frame-warning" aria-hidden="true">  <AlertTriangleIcon class="icon" /></span><span class="icon-frame icon-frame-danger" aria-hidden="true">  <AlertCircleIcon class="icon" /></span><span class="icon-frame icon-frame-category category-violet" aria-hidden="true">  <SearchIcon class="icon" /></span>
<script setup>import DownloadIcon from '@master/icons-vue/native/20/soft/download'import InfoCircleIcon from '@master/icons-vue/native/20/soft/info-circle'import CheckIcon from '@master/icons-vue/native/20/soft/check'import AlertTriangleIcon from '@master/icons-vue/native/20/soft/alert-triangle'import AlertCircleIcon from '@master/icons-vue/native/20/soft/alert-circle'import SearchIcon from '@master/icons-vue/native/20/soft/search'</script><template>  <span class="icon-frame icon-frame-raised" aria-hidden="true"><DownloadIcon class="icon" /></span>  <span class="icon-frame icon-frame-info" aria-hidden="true"><InfoCircleIcon class="icon" /></span>  <span class="icon-frame icon-frame-success" aria-hidden="true"><CheckIcon class="icon" /></span>  <span class="icon-frame icon-frame-warning" aria-hidden="true">    <AlertTriangleIcon class="icon" />  </span>  <span class="icon-frame icon-frame-danger" aria-hidden="true">    <AlertCircleIcon class="icon" />  </span>  <span class="icon-frame icon-frame-category category-violet" aria-hidden="true">    <SearchIcon class="icon" />  </span></template>

#텍스트 옆에 배치

프레임은 해당 섹션이 다루는 대상의 종류를 나타내고, 옆의 제목이 이를 텍스트로 설명합니다. 빈 상태의 맨 위에도 프레임을 두며, empty-media가 세로 배치 안에서 프레임의 자리를 잡아 줍니다.

텍스트 옆에 배치

<div class="auto-grid gap-xl w-full max-w(640)" style="--auto-grid-min: 11rem">  <div class="flex flex-col items-start gap-sm">    <span class="icon-frame icon-frame-sm" aria-hidden="true">      <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round">        <path d="M10.6071 2.4206L16.8571 5.8928A1.25 1.25 0 0 1 17.5 6.9855L17.5 13.4312A1.25 1.25 0 0 1 16.857 14.5239L10.607 17.9961A1.25 1.25 0 0 1 9.393 17.9961L3.143 14.5239A1.25 1.25 0 0 1 2.5 13.4312L2.5 6.9855A1.25 1.25 0 0 1 3.1429 5.8928L9.3929 2.4206A1.25 1.25 0 0 1 10.6071 2.4206Z" /><path d="M5.7036 4.4702L6.8934 3.8092L13.75 7.6183L16.857 5.8928A1.2493 1.2493 0 0 1 17.4998 6.9651L10.625 10.7844V17.9861A1.2511 1.2511 0 0 1 9.375 17.9861V10.7844L2.5002 6.9651A1.25 1.25 0 0 1 3.1435 5.8925L10 9.7017L12.4631 8.3333L5.9092 4.6906A0.6265 0.6265 0 0 1 5.7036 4.4702Z" fill="currentColor" stroke="none" fill-rule="evenodd" />      </svg>    </span>    <h3 class="m(0) text-sm font-medium fg-text-strong">Contracts</h3>    <p class="m(0) text-sm fg-text-muted">      Every class says what it promises, in a file a program reads.    </p>  </div>  <div class="flex flex-col items-start gap-sm">    <span class="icon-frame icon-frame-sm" aria-hidden="true">      <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round">        <path d="M3.9532 10.7535Q4.119 12.0422 4.7999 13.1487Q5.559 14.3826 6.7952 15.1379Q8.0313 15.8933 9.4756 16.0059A6.0357 6.0357 0 0 0 15.6598 11.9443Q16.1302 10.5741 15.9281 9.1396A6.0358 6.0358 0 0 0 10.6259 3.9793Q9.1864 3.8162 7.8295 4.3235Q6.6125 4.7786 5.6902 5.6937L3.3143 7.9822A0.626 0.626 0 0 1 3.0069 8.1185Q2.7352 8.0852 2.5333 7.8834Q2.3315 7.6815 2.2982 7.4098A0.6257 0.6257 0 0 1 2.4829 7.0501L4.8098 4.8063Q5.923 3.7019 7.3917 3.1527Q9.0294 2.5404 10.7666 2.7372Q12.5039 2.9341 13.963 3.8974A7.2849 7.2849 0 0 1 16.8422 12.3501Q16.2744 14.0038 15.0186 15.2202A7.2846 7.2846 0 0 1 6.1434 16.2045Q4.6515 15.2929 3.7353 13.8038Q2.9135 12.4683 2.7134 10.9131A0.625 0.625 0 0 1 3.9257 10.6341A0.6251 0.6251 0 0 1 3.9532 10.7535Z" fill="currentColor" stroke="none" fill-rule="evenodd" /><path d="M2.9167 2.9167L2.9167 7.3A0.2 0.2 0 0 0 3.1167 7.5L7.5 7.5" /><path d="M10 5.8333L10 9.893A0.2 0.2 0 0 0 10.0891 10.0594L12.5 11.6667" />      </svg>    </span>    <h3 class="m(0) text-sm font-medium fg-text-strong">Platform first</h3>    <p class="m(0) text-sm fg-text-muted">      Native elements do the work; a script moves attributes.    </p>  </div>  <div class="flex flex-col items-start gap-sm">    <span class="icon-frame icon-frame-sm" aria-hidden="true">      <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round">        <path d="M3.3333 4.1667L16.6667 4.1667" /><path d="M3.3333 7.9167L11.6667 7.9167" /><path d="M3.3333 11.6667L16.6667 11.6667" /><path d="M3.3333 15.4167L11.6667 15.4167" />      </svg>    </span>    <h3 class="m(0) text-sm font-medium fg-text-strong">Tokens only</h3>    <p class="m(0) text-sm fg-text-muted">One theme file retunes every face, edge and shadow.</p>  </div></div>
import PackageIcon from '@master/icons-react/native/20/soft/package'import HistoryIcon from '@master/icons-react/native/20/soft/history'import AlignLeftIcon from '@master/icons-react/native/20/soft/align-left'<div className="auto-grid gap-xl w-full max-w(640)" style={{ '--auto-grid-min': '11rem' } as React.CSSProperties}>  <div className="flex flex-col items-start gap-sm">    <span className="icon-frame icon-frame-sm" aria-hidden="true">      <PackageIcon className="icon" />    </span>    <h3 className="m(0) text-sm font-medium fg-text-strong">Contracts</h3>    <p className="m(0) text-sm fg-text-muted">      Every class says what it promises, in a file a program reads.    </p>  </div>  <div className="flex flex-col items-start gap-sm">    <span className="icon-frame icon-frame-sm" aria-hidden="true">      <HistoryIcon className="icon" />    </span>    <h3 className="m(0) text-sm font-medium fg-text-strong">Platform first</h3>    <p className="m(0) text-sm fg-text-muted">      Native elements do the work; a script moves attributes.    </p>  </div>  <div className="flex flex-col items-start gap-sm">    <span className="icon-frame icon-frame-sm" aria-hidden="true">      <AlignLeftIcon className="icon" />    </span>    <h3 className="m(0) text-sm font-medium fg-text-strong">Tokens only</h3>    <p className="m(0) text-sm fg-text-muted">      One theme file retunes every face, edge and shadow.    </p>  </div></div>
<script>  import PackageIcon from '@master/icons-svelte/native/20/soft/package'  import HistoryIcon from '@master/icons-svelte/native/20/soft/history'  import AlignLeftIcon from '@master/icons-svelte/native/20/soft/align-left'</script><div class="auto-grid gap-xl w-full max-w(640)" style="--auto-grid-min: 11rem">  <div class="flex flex-col items-start gap-sm">    <span class="icon-frame icon-frame-sm" aria-hidden="true"><PackageIcon class="icon" /></span>    <h3 class="m(0) text-sm font-medium fg-text-strong">Contracts</h3>    <p class="m(0) text-sm fg-text-muted">      Every class says what it promises, in a file a program reads.    </p>  </div>  <div class="flex flex-col items-start gap-sm">    <span class="icon-frame icon-frame-sm" aria-hidden="true"><HistoryIcon class="icon" /></span>    <h3 class="m(0) text-sm font-medium fg-text-strong">Platform first</h3>    <p class="m(0) text-sm fg-text-muted">      Native elements do the work; a script moves attributes.    </p>  </div>  <div class="flex flex-col items-start gap-sm">    <span class="icon-frame icon-frame-sm" aria-hidden="true"><AlignLeftIcon class="icon" /></span>    <h3 class="m(0) text-sm font-medium fg-text-strong">Tokens only</h3>    <p class="m(0) text-sm fg-text-muted">One theme file retunes every face, edge and shadow.</p>  </div></div>
<script setup>import PackageIcon from '@master/icons-vue/native/20/soft/package'import HistoryIcon from '@master/icons-vue/native/20/soft/history'import AlignLeftIcon from '@master/icons-vue/native/20/soft/align-left'</script><template>  <div class="auto-grid gap-xl w-full max-w(640)" style="--auto-grid-min: 11rem">    <div class="flex flex-col items-start gap-sm">      <span class="icon-frame icon-frame-sm" aria-hidden="true"><PackageIcon class="icon" /></span>      <h3 class="m(0) text-sm font-medium fg-text-strong">Contracts</h3>      <p class="m(0) text-sm fg-text-muted">        Every class says what it promises, in a file a program reads.      </p>    </div>    <div class="flex flex-col items-start gap-sm">      <span class="icon-frame icon-frame-sm" aria-hidden="true"><HistoryIcon class="icon" /></span>      <h3 class="m(0) text-sm font-medium fg-text-strong">Platform first</h3>      <p class="m(0) text-sm fg-text-muted">        Native elements do the work; a script moves attributes.      </p>    </div>    <div class="flex flex-col items-start gap-sm">      <span class="icon-frame icon-frame-sm" aria-hidden="true">        <AlignLeftIcon class="icon" />      </span>      <h3 class="m(0) text-sm font-medium fg-text-strong">Tokens only</h3>      <p class="m(0) text-sm fg-text-muted">One theme file retunes every face, edge and shadow.</p>    </div>  </div></template>

#접근성

  • 프레임은 장식 요소입니다. 프레임에 aria-hidden="true"를 지정하고, 의미는 옆의 텍스트로 전달하세요.
  • 프레임은 버튼이 아닙니다. 누를 수 있는 아이콘은 접근 가능한 이름이 있는 btn-square로 작성하세요.
  • 톤의 색상은 텍스트가 전달하는 내용을 반복할 뿐이며, 색상만으로 의미를 전달하지 않습니다.

#클래스

클래스설명
icon-frame표면에 눌린 48px의 오목한 영역으로, 20px 아이콘을 담습니다
icon-frame-xs32px이며 16px 아이콘과 작은 컨트롤의 모서리를 사용합니다적용할 클래스는 icon-frame입니다
icon-frame-sm40px이며 20px 아이콘과 컨트롤의 모서리를 사용합니다적용할 클래스는 icon-frame입니다
icon-frame-lg64px이며 28px 아이콘과 표면의 모서리를 사용합니다적용할 클래스는 icon-frame입니다
icon-frame-raised오목한 영역 대신 작은 볼록한 시트입니다. 오목한 영역, 트레이, 복잡한 표면 위에 놓이는 프레임에 사용합니다.적용할 클래스는 icon-frame입니다
icon-frame-info정보 색상을 옅게 입힙니다. 같은 내용을 설명하는 텍스트와 함께 사용합니다.적용할 클래스는 icon-frame입니다
icon-frame-success성공 색상을 옅게 입힙니다. 같은 내용을 설명하는 텍스트와 함께 사용합니다.적용할 클래스는 icon-frame입니다
icon-frame-warning경고 색상을 옅게 입힙니다. 같은 내용을 설명하는 텍스트와 함께 사용합니다.적용할 클래스는 icon-frame입니다
icon-frame-danger위험 색상을 옅게 입힙니다. 같은 내용을 설명하는 텍스트와 함께 사용합니다.적용할 클래스는 icon-frame입니다
icon-frame-category프레임 자체나 그 상위 요소에 지정한 category-<name> 클래스의 카테고리에서 표면색, 선 색, 텍스트 색을 가져옵니다. 카테고리가 없으면 중립색입니다.적용할 클래스는 icon-frame입니다

#사용자 지정 속성

속성기본값설명
--icon-frame-size3rem프레임의 너비와 높이
--icon-frame-radiusvar(--radius-control-lg)모서리 배율을 적용하기 전의 모서리 반지름

#소스

@master/ui/components/icon-frame.css
/* * Icon frame: a small well an icon stands in, beside a heading, at the top of an empty view or in a row of * features. It holds the icon at its size and centre and gives it a material; it is not a control and has no * hover, press or focus. A button with an icon is a btn-square. * * The well is pressed into the surface, as the empty view's always was: 48px with a 20px icon and the control's * large corner. Smaller frames take a smaller corner and a larger one the surface's, so the corner always reads * as the same shape at its size. A raised frame is a small sheet instead, for a frame that stands on a well * or a tray. A status tone tints the well with its hue, beside words that say the same; a category takes its * surface, its text and its line. */@layer components.ui {  .icon-frame {    --icon-frame-size: 3rem;    --icon-frame-radius: var(--radius-control-lg);    --icon-size: 1.25rem;    --icon-color: var(--color-text-muted);    --icon-offset: 0;    display: inline-grid;    flex: none;    place-items: center;    box-sizing: border-box;    width: var(--icon-frame-size);    height: var(--icon-frame-size);    border-radius: calc(var(--icon-frame-radius) * var(--corner-scale));    corner-shape: var(--corner-shape);    background: var(--color-surface-inset);    color: var(--color-text-muted);    box-shadow: var(--shadow-pressed);    vertical-align: middle;    &.icon-frame-xs {      --icon-frame-size: 2rem;      --icon-frame-radius: var(--radius-control-sm);      --icon-size: 1rem;    }    &.icon-frame-sm {      --icon-frame-size: 2.5rem;      --icon-frame-radius: var(--radius-control);      --icon-size: 1.25rem;    }    &.icon-frame-lg {      --icon-frame-size: 4rem;      --icon-frame-radius: var(--radius-surface);      --icon-size: 1.75rem;    }    /* Raised: a small sheet that catches the light, for a frame on a well, a tray or a busy surface. */    &.icon-frame-raised {      @apply --surface-sheet;      --icon-color: var(--color-text-strong);      color: var(--color-text-strong);      box-shadow: var(--shadow-raised);    }    /* A status: the well takes a wash of its hue, and the icon the hue itself. */    &:is(.icon-frame-info, .icon-frame-success, .icon-frame-warning, .icon-frame-danger) {      --icon-color: color-mix(in oklab, var(--icon-frame-tone) 86%, var(--color-text-strong));      background: color-mix(in oklab, var(--icon-frame-tone) 9%, var(--color-surface-raised));      box-shadow: inset 0 0 0 .5px color-mix(in oklab, var(--icon-frame-tone) 30%, transparent);    }    &.icon-frame-info { --icon-frame-tone: var(--color-info); }    &.icon-frame-success { --icon-frame-tone: var(--color-success); }    &.icon-frame-warning { --icon-frame-tone: var(--color-warning); }    &.icon-frame-danger { --icon-frame-tone: var(--color-danger); }    /* A category: its surface, its line, and its text for the icon. Neutral without one. */    &.icon-frame-category {      --icon-color: var(--category-text, var(--color-text-muted));      background: var(--category-surface, var(--color-surface-inset));      box-shadow: inset 0 0 0 .5px var(--category-line, var(--color-line-contour));    }    @media (forced-colors: active) {      outline: 1px solid CanvasText;      outline-offset: -1px;    }  }}