CSS: drawer-layout.content
.content — The primary content pane that fills remaining space beside the tray.
Once the parent's inline-size drops below 46em (16em tray width + 30em breakpoint), a @container query on the parent's pantoken-drawer-layout container drops this member's min-inline-size to 0 automatically, matching the manual [should-overlay-tray] override.
Accessibility
Carry role="region" (InstUI's DrawerLayout convention) and name it with aria-label/aria-labelledby when context alone doesn't identify it.
Usage
css
@import "@pantoken/components/components.css";
@import "@pantoken/components/drawer-layout.content.css";Examples
html
<div class="instui-drawer-layout">
<div class="content" role="region">
<p class="instui-text">Tray content</p>
</div>
</div>Structure
text
@scope (@component drawer-layout)
.content
‹content›flowchart TD
subgraph sg0 ["@scope (@component drawer-layout)"]
n1(".content"):::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;
Conditions
| Type | Query | Description |
|---|---|---|
| container | pantoken-drawer-layout (max-width: 46em) | — |
Tokens consumed
| Token | Type | Value |
|---|---|---|
--drawer-layout-content-min-inline-size | <length> | — |
--pantoken-bp-md | <length> | 30em |
Related
- drawer-layout.tray — The adjacent panel in the same flex row.