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>Footer (footer)
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.
| Type | Default | Required |
|---|---|---|
boolean | false | ❌ |
header
Plain-text header content shown above the body. Overridden by the header slot if provided.
| Type | Default | Required |
|---|---|---|
string | — | ❌ |
footer
Plain-text footer content shown below the body. Overridden by the footer slot if provided.
| Type | Default | Required |
|---|---|---|
string | — | ❌ |
design
Design line (or inherit from data-design).
| Type | Default | Required |
|---|---|---|
'tuix' | 'rubik' | — (inherits from data-design) | ❌ |
Slots
| Slot | Description |
|---|---|
header | Panel header |
default | Main panel content |
footer | Panel footer |
CSS Custom Properties
| Token | Default | Description |
|---|---|---|
--font-mono | "JetBrains Mono", ui-monospace, monospace | Monospace font stack for code-like content (key labels, log lines, chips). |
--accent | from theme (--ctp-latte-mauve / --ctp-mocha-mauve) | Accent color, mapped from the active semantic color. |
--bg | from theme (--ctp-latte-base / --ctp-mocha-base) | Base background of the surface. |
--bg-alt | from theme (--ctp-latte-mantle / --ctp-mocha-mantle) | Alternate background (the next layer down from the base). |
--bg-panel | from theme (--ctp-latte-surface1 / --ctp-mocha-surface1) | Background of panel-like raised surfaces (cards, accordions). |
--border | from theme (--ctp-latte-surface0 / --ctp-mocha-surface0) | Outline and divider color for surfaces. |
--text | from theme (--ctp-latte-text / --ctp-mocha-text) | Primary text color used inside the component. |
--text-muted | from theme (--ctp-latte-subtext1 / --ctp-mocha-subtext1) | Secondary text for hints, annotations and disabled state. |
--cp-ease | cubic-bezier(.4, 0, .2, 1) | Default easing curve for transitions. |
Ver Theming para la convención completa.