Layout
DockPanel
Docks regions to its top, bottom, left and right edges and gives what is left to the fill; the order decides who wins the corners.
WAI-ARIA tested
Import
main.ts
import { DockPanel } from '@vitral/vue';An application frame
A toolbar, a status bar, a file tree and a properties pane around an editor.
top — toolbar
left — files
fill — the editor
right — properties
bottom — status bar
Only what is there
Just a left slot and the fill: no tracks, and no gaps, for the edges that are absent.
left
fill
API
Read from packages/vue/src/components/DockPanel/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| dockOrder | string | ('top' | 'bottom' | 'left' | 'right')[] | The order the edges dock in. Each edge takes a full strip of the space still free, so the earlier edges win the corners. The default, `['top', 'bottom', 'left', 'right']`, has top and bottom span the full width; put `left`/`right` first for full-height sides. An array or a list such as `'left,right'`; edges left out follow in the default order. |
| spacing | number | string | Space between the docked regions and the fill. Defaults to the `dockpanel.spacing` token. |
| as | string | Component | — |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| top | — | — |
| bottom | — | — |
| left | — | — |
| right | — | — |
| default | — | The fill: what the docked edges leave. |