v2.0.0-rc.4
Theme

Sidebar Layout

Responsive persistent sidebar and content grid. The element wraps the public Core CSS contract in Shadow DOM without taking ownership of application state.

Installation

npm install @duskmoon-dev/el-sidebar-layout

Usage

import '@duskmoon-dev/el-sidebar-layout/register';
<el-dm-sidebar-layout position="start">
  <nav slot="sidebar" aria-label="Workspace">...</nav>
  <main>Workspace content</main>
</el-dm-sidebar-layout>

Live Demo

Sidebar Layout

Workspace content

Properties

PropertyTypeDefaultDescription
position'start' | 'end''start'Logical sidebar placement
compactbooleanfalseUse compact sidebar width
sidebar-hiddenbooleanfalseHide the sidebar

Slots

SlotDescription
sidebarPersistent sidebar content
DefaultMain content

CSS Parts

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