Skip to content

pantoken-root / renderers/web-components/src / drawerLayout

Athróg: drawerLayout ​

const drawerLayout: ElementDefinition

Ailfha

&lt;instui-drawer-layout&gt; — a side tray plus main content area. The open attribute reveals the tray; placement (start|end) picks the side. Drivable from light DOM via Invoker Commands: <button command="--toggle|--open|--close" commandfor="drawer-id">. Content goes in the default slot; the tray in slot="tray". The interactions behavior auto-toggles overlay mode based on the --pantoken-bp-md threshold.

Inrochtaineacht ​

Tá role="region" ar an bpána ábhair, ag comhlíonadh DrawerLayout InstUI; lipéadaigh é le aria-label/aria-labelledby nuair nach bhfuil sé ainmnithe cheana sa chomhthéacs timpeallaithe.

Sampla ​

html
<button command="--toggle" commandfor="drawer">Lascaigh painéal</button>
<instui-drawer-layout id="drawer" open placement="start">
  <nav slot="tray">…</nav>
  <article>Príomhábhar</article>
</instui-drawer-layout>