Editor Shell — template.editor-shell
The frame of a visual editor: a thin app-bar on top, a fixed icon rail on the far left, a resizable left panel, a filling work area in the middle, and a resizable right aside. The column widths are dragged via built-in resize handles (pointer-capture, clamped). Fills its parent (fit=container) for d
Beispiele
Templates liefern Slot-Regeln statt eigener Demos — siehe Events & Slots.
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
variant | string: flat | workspace | "flat" |
fit | string: container | viewport | "container" |
panelWidth | string | "18rem" |
asideWidth | string | "22rem" |
appbar | string: default | compact | "default" |
narrow | string: none | sheets | "none" |
panelOpen | boolean | true |
asideOpen | boolean | true |
storageKey | string | "" |
collapseKeys | boolean | false |
Events & Slots
Events: resize, collapse
Slot nav: akzeptiert component.sidebar, ui.*, layout.*
Slot appbar: akzeptiert component.app-bar, component.toolbar, ui.*, layout.*
Slot rail: akzeptiert component.icon-rail, ui.*
Slot panel: akzeptiert component.panel, component.sidebar, ui.*, layout.*, component.*
Slot main: akzeptiert section.*, layout.*, component.*, ui.* · Pflicht
Slot aside: akzeptiert component.panel, component.inspector, component.conversation, ui.*, layout.*, component.*
Slot narrowBar: akzeptiert component.tab-bar, ui.*, layout.*
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--tab-bar-radius-full | 0 |
Genutzte Design-Tokens
border.emphasis border.hairline color.action.primary color.border.subtle color.surface.default color.surface.page color.text.default duration.base duration.fast easing.standard elevation.overlay elevation.raised font.family.default glass.backdrop layer.dropdown radius.full radius.surface size.1 size.10 size.2 size.6