Skip to content

pantoken / renderers/web-components/src / drawerLayout

Variável: drawerLayout

const drawerLayout: ElementDefinition

Alfa

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

Acessibilidade

O painel de conteúdo carrega role="region", correspondendo ao DrawerLayout do InstUI; rotule-o com aria-label/aria-labelledby quando o contexto circundante ainda não o nomear.

Exemplo

html
<button command="--toggle" commandfor="drawer">Toggle panel</button>
<instui-drawer-layout id="drawer" open placement="start">
  <nav slot="tray">…</nav>
  <article>Main content</article>
</instui-drawer-layout>