Skip to content

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

משתנה: drawerLayout ​

const drawerLayout: ElementDefinition

אלפא

&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.

נגישות ​

חלונית התוכן נושאת role="region", בהתאמה ל InstUI's DrawerLayout; תתייגו אותה עם aria-label/aria-labelledby כאשר ההקשר הסובב אינו מעניק לה שם כבר.

דוגמה ​

html
<button command="--toggle" commandfor="drawer">הצג/הסתר לוח</button>
<instui-drawer-layout id="drawer" open placement="start">
  <nav slot="tray">…</nav>
  <article>תוכן ראשי</article>
</instui-drawer-layout>