Skip to content

pantoken / 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의 DrawerLayout과 일치합니다; 주변 문맥이 이미 이름을 부여하지 않았다면 aria-label/aria-labelledby로 레이블을 지정하세요.

예제

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>