Skip to content

CSS: drawer-layout.tray

.tray — Panno bò ki bò kote kontni prensipal la, ak modifikatè opsyonèl tankou kouch sipèpoze ak sifas ki sanble yon tray.

Pozisyonman itilize inset-inline-start/inset-inline (pa janm left/right), kidonk -placement-end doke sou bor dèyè reyèl la nan tou de LTR ak RTL.

Aksè

Si li itilize kòm navigasyon, mete lyen yo anndan yon <nav> semantik epi bay li yon non aksesib.

Itilizasyon

css
@import "@pantoken/components/components.css";
@import "@pantoken/components/drawer-layout.tray.css";

Egzanp

html
<div class="instui-drawer-layout" open>
  <aside class="tray" aria-label="Course navigation">
    <a class="instui-link" href="#">Modules</a>
  </aside>
  <main class="content" role="region">Main content</main>
</div>

Estrikti

text
@scope (@component drawer-layout)
  .tray
    ‹content›
flowchart TD subgraph sg0 ["@scope (@component drawer-layout)"] n1(".tray"):::cssdoc-part n2[/"‹content›"/]:::cssdoc-slot end n1 --> n2 classDef cssdoc-root stroke-width:1px; classDef cssdoc-part stroke-width:1px; classDef cssdoc-slot stroke-width:1px; classDef cssdoc-component stroke-width:1px;

Modifikatè

ModifikatèDeskripsyon
.-placement-endDoke tray sa a sou inline-end lè mòd overlay la aktif.
.-without-borderRetire bor panèl la.
.-without-shadowRetire elevasyon an lè mòd overlay la aktif.

Kondisyon

TipRechèchDeskripsyon
containerpantoken-drawer-layout (max-width: 46em)

Tokens konsome

TokenTipValè
--drawer-layout-tray-width
--instui-border-width-sm<length>0.0625rem
--instui-color-background-elevated-surface-base<color>LightDarklight-dark(#ffffff, #171B21)
--instui-color-stroke-base<color>LightDarklight-dark(#8D959F, #6A7883)
--instui-component-tray-width-xs<length>16em
--instui-component-tray-z-index<integer>9999
--instui-elevation-topmostnone | <shadow>#

Ki gen rapò