Skip to content

Panel ​

Versatile container with header, body and footer, plus optional vertical divider.

Panel

Design lines ​

System status
All services nominal.
vue
1<Tabs defaultValue="tuix">2  <TabsList>3    <Tab value="tuix">TUIX</Tab>4    <Tab value="rubik">Rubik</Tab>5  </TabsList>6  <TabPanel value="tuix">7    <Panel design="tuix"><template #header>System status</template>All services nominal.<template #footer>updated 2m ago</template></Panel>8  </TabPanel>9  <TabPanel value="rubik">10    <Panel design="rubik"><template #header>System status</template>All services nominal.<template #footer>updated 2m ago</template></Panel>11  </TabPanel>12</Tabs>

Demo ​

Basic (title) ​

A panel with header, content, and footer through the title prop and slots.

📋 Panel
Main panel content.
📋 No divider
Panel without the vertical divider.
vue
1<Panel divider>2  <template #header>📋 Panel</template>3  Main panel content.4  <template #footer>⚡ Footer with information</template>5</Panel>67<Panel>8  <template #header>📋 No divider</template>9  Panel without the vertical divider.10  <template #footer>Footer</template>11</Panel>

Divider (divider) ​

Compares panels with and without the divider prop.

With divider
Content with vertical line.
No divider
Content without vertical line.
vue
1<Panel divider>2<Panel>

Header (header) ​

Plain-text header content via the header prop. The slot wins if both are provided.

System status
All services nominal.
vue
1<Panel header="System status">All services nominal.</Panel>

Plain-text footer content via the footer prop. The slot wins if both are provided.

All services nominal.
vue
1<Panel footer="Updated 2m ago">All services nominal.</Panel>

Props ​

divider ​

Shows a vertical divider (│) to the left of the content.

TypeDefaultRequired
booleanfalse❌

Plain-text header content shown above the body. Overridden by the header slot if provided.

TypeDefaultRequired
string—❌

Plain-text footer content shown below the body. Overridden by the footer slot if provided.

TypeDefaultRequired
string—❌

design ​

Design line (or inherit from data-design).

TypeDefaultRequired
'tuix' | 'rubik'— (inherits from data-design)❌

Slots ​

SlotDescription
headerPanel header
defaultMain panel content
footerPanel footer

CSS Custom Properties ​

TokenDefaultDescription
--font-mono"JetBrains Mono", ui-monospace, monospaceMonospace font stack for code-like content (key labels, log lines, chips).
--accentfrom theme (--ctp-latte-mauve / --ctp-mocha-mauve)Accent color, mapped from the active semantic color.
--bgfrom theme (--ctp-latte-base / --ctp-mocha-base)Base background of the surface.
--bg-altfrom theme (--ctp-latte-mantle / --ctp-mocha-mantle)Alternate background (the next layer down from the base).
--bg-panelfrom theme (--ctp-latte-surface1 / --ctp-mocha-surface1)Background of panel-like raised surfaces (cards, accordions).
--borderfrom theme (--ctp-latte-surface0 / --ctp-mocha-surface0)Outline and divider color for surfaces.
--textfrom theme (--ctp-latte-text / --ctp-mocha-text)Primary text color used inside the component.
--text-mutedfrom theme (--ctp-latte-subtext1 / --ctp-mocha-subtext1)Secondary text for hints, annotations and disabled state.
--cp-easecubic-bezier(.4, 0, .2, 1)Default easing curve for transitions.

Ver Theming para la convención completa.