v2.0.0-rc.4
Theme

Console Page

Responsive console shell with expanded, compact, hidden, and mobile navigation states. The element wraps the public Core CSS contract in Shadow DOM without taking ownership of application state.

Installation

npm install @duskmoon-dev/el-console-page

Usage

import '@duskmoon-dev/el-console-page/register';
<el-dm-console-page>
  <header slot="appbar">Console</header>
  <button slot="menu-trigger">Menu</button>
  <button slot="sidebar-toggle">Toggle sidebar</button>
  <strong slot="sidebar-header">Workspace</strong>
  <nav slot="sidebar" aria-label="Workspace">...</nav>
  <main slot="main">Dashboard content</main>
</el-dm-console-page>

Live Demo

Console Page

Console
Workspace
Dashboard content

Properties

PropertyTypeDefaultDescription
compactbooleanfalseUse the icon-rail sidebar width
sidebar-hiddenbooleanfalseHide the persistent sidebar

Slots

SlotDescription
appbarTop application bar
menu-triggerCompact-width navigation trigger
sidebar-toggleWide-screen sidebar state control
sidebar-headerSidebar heading or brand
sidebarSidebar navigation body
sidebar-footerSidebar footer
mainMain application content
mobile-menuCompact-width native popover menu
DefaultAdditional main content

CSS Parts

Every structural wrapper is exposed with a matching CSS part name for targeted customization.