Components / Navigation
Sidebar
A composed sidebar shell for navigation and footer content.
<aside class="sidebar" aria-label="Sidebar" style="height: 22rem">
<header>
<span data-slot="brand">loseta</span>
</header>
<section>
<nav aria-label="Documentation">
<ul>
<li><a href="#" aria-current="page">Overview</a></li>
<li><a href="#">Installation</a></li>
<li>
<details class="collapsible" open>
<summary>
Components
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
</summary>
<ul>
<li><a href="#">Button</a></li>
<li><a href="#">Card</a></li>
<li><a href="#">Field</a></li>
</ul>
</details>
</li>
<li><a href="#">Styles</a></li>
</ul>
</nav>
</section>
<footer>
<span>v0.16.0</span>
</footer>
</aside>Installation
pnpm dlx loseta add sidebarnpx loseta add sidebarExamples
Groups
<aside class="sidebar" aria-label="Sidebar" style="height: 28rem">
<header>
<span data-slot="brand">Acme Inc</span>
</header>
<section>
<nav aria-labelledby="demo-sidebar-groups-platform">
<header>
<h3 id="demo-sidebar-groups-platform">Platform</h3>
</header>
<ul>
<li><a href="#" aria-current="page">Playground</a></li>
<li><a href="#">Models</a></li>
<li><a href="#">Documentation</a></li>
<li><a href="#">Settings</a></li>
</ul>
</nav>
<nav aria-labelledby="demo-sidebar-groups-projects">
<header>
<h3 id="demo-sidebar-groups-projects">Projects</h3>
</header>
<ul>
<li><a href="#">Design Engineering</a></li>
<li><a href="#">Sales & Marketing</a></li>
<li><a href="#">Travel</a></li>
</ul>
</nav>
</section>
<footer>
<span>v0.16.0</span>
</footer>
</aside>With icons
<aside class="sidebar" aria-label="Sidebar" style="height: 24rem">
<header>
<span data-slot="brand"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="16" height="20" x="4" y="2" rx="2" ry="2"/><path d="M9 22v-4h6v4"/><path d="M8 6h.01"/><path d="M16 6h.01"/><path d="M12 6h.01"/><path d="M12 10h.01"/><path d="M12 14h.01"/><path d="M16 10h.01"/><path d="M16 14h.01"/><path d="M8 10h.01"/><path d="M8 14h.01"/></svg> Acme Inc</span>
</header>
<section>
<nav aria-label="Application">
<ul>
<li><a href="#" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="4 17 10 11 4 5"/><line x1="12" x2="20" y1="19" y2="19"/></svg><span>Playground</span></a></li>
<li><a href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-icon="inline-start"><path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg><span>Models</span></a></li>
<li><a href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg><span>Documentation</span></a></li>
<li><a href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg><span>Settings</span></a></li>
</ul>
</nav>
<nav aria-label="Support">
<ul>
<li><a href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><path d="M12 17h.01"/></svg><span>Support</span></a></li>
<li><a href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg><span>Feedback</span></a></li>
</ul>
</nav>
</section>
<footer>
<span>MIT licensed</span>
</footer>
</aside>Group action
<aside class="sidebar" aria-label="Sidebar" style="height: 24rem">
<header>
<span data-slot="brand">Acme Inc</span>
</header>
<section>
<nav aria-labelledby="demo-sidebar-group-action-projects">
<header>
<h3 id="demo-sidebar-group-action-projects">Projects</h3>
<button type="button" data-slot="group-action" aria-label="Add project"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="M12 5v14"/></svg></button>
</header>
<ul>
<li><a href="#" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg><span>Design Engineering</span></a></li>
<li><a href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg><span>Sales & Marketing</span></a></li>
<li><a href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg><span>Travel</span></a></li>
<li><a href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg><span>Support</span></a></li>
</ul>
</nav>
</section>
<footer>
<span>v0.16.0</span>
</footer>
</aside>Collapsible groups
<aside class="sidebar" aria-label="Sidebar" style="height: 26rem">
<header>
<span data-slot="brand">Acme Inc</span>
</header>
<section>
<details class="collapsible" open>
<summary data-slot="group-label">
Platform
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
</summary>
<nav aria-label="Platform">
<ul>
<li><a href="#" aria-current="page">Playground</a></li>
<li><a href="#">Models</a></li>
<li><a href="#">Documentation</a></li>
</ul>
</nav>
</details>
<details class="collapsible">
<summary data-slot="group-label">
Projects
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
</summary>
<nav aria-label="Projects">
<ul>
<li><a href="#">Design Engineering</a></li>
<li><a href="#">Sales & Marketing</a></li>
<li><a href="#">Travel</a></li>
</ul>
</nav>
</details>
</section>
<footer>
<span>v0.16.0</span>
</footer>
</aside>Nested menu
<aside class="sidebar" aria-label="Sidebar" style="height: 26rem">
<header>
<span data-slot="brand">Documentation</span>
</header>
<section>
<nav aria-label="Documentation">
<ul>
<li><a href="#">Getting started</a></li>
<li>
<details class="collapsible" open>
<summary>
Build your application
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
</summary>
<ul>
<li><a href="#">Routing</a></li>
<li><a href="#" aria-current="page">Data fetching</a></li>
<li><a href="#">Rendering</a></li>
<li><a href="#">Caching</a></li>
</ul>
</details>
</li>
<li>
<details class="collapsible">
<summary>
API reference
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
</summary>
<ul>
<li><a href="#">Components</a></li>
<li><a href="#">File conventions</a></li>
<li><a href="#">Functions</a></li>
</ul>
</details>
</li>
<li><a href="#">Architecture</a></li>
</ul>
</nav>
</section>
<footer>
<span>v0.16.0</span>
</footer>
</aside>Sub menu
<aside class="sidebar" aria-label="Sidebar" style="height: 24rem">
<header>
<span data-slot="brand">Documentation</span>
</header>
<section>
<nav aria-label="Documentation">
<ul>
<li>
<a href="#">Getting started</a>
<ul>
<li><a href="#">Installation</a></li>
<li><a href="#">Project structure</a></li>
</ul>
</li>
<li>
<a href="#">Build your application</a>
<ul>
<li><a href="#">Routing</a></li>
<li><a href="#" aria-current="page">Data fetching</a></li>
<li><a href="#">Rendering</a></li>
</ul>
</li>
<li><a href="#">Architecture</a></li>
</ul>
</nav>
</section>
<footer>
<span>v0.16.0</span>
</footer>
</aside>Badges
<aside class="sidebar" aria-label="Sidebar" style="height: 24rem">
<header>
<span data-slot="brand">Acme Inc</span>
</header>
<section>
<nav aria-labelledby="demo-sidebar-badges-projects">
<header>
<h3 id="demo-sidebar-badges-projects">Projects</h3>
</header>
<ul>
<li><a href="#" aria-current="page">Design Engineering</a><span data-slot="menu-badge">24</span></li>
<li><a href="#">Sales & Marketing</a><span data-slot="menu-badge">12</span></li>
<li><a href="#">Travel</a><span data-slot="menu-badge">3</span></li>
<li><a href="#">Support</a><span data-slot="menu-badge">21</span></li>
<li><a href="#">Feedback</a><span data-slot="menu-badge">8</span></li>
</ul>
</nav>
</section>
<footer>
<span>v0.16.0</span>
</footer>
</aside>Actions
<aside class="sidebar" aria-label="Sidebar" style="height: 24rem">
<header>
<span data-slot="brand">Acme Inc</span>
</header>
<section>
<nav aria-labelledby="demo-sidebar-actions-projects">
<header>
<h3 id="demo-sidebar-actions-projects">Projects</h3>
</header>
<ul>
<li>
<a href="#" aria-current="page">Design Engineering</a>
<button type="button" data-slot="menu-action" aria-label="More actions for Design Engineering"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg></button>
</li>
<li>
<a href="#">Sales & Marketing</a>
<button type="button" data-slot="menu-action" aria-label="More actions for Sales & Marketing"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg></button>
</li>
<li>
<a href="#">Travel</a>
<button type="button" data-slot="menu-action" aria-label="More actions for Travel"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg></button>
</li>
</ul>
</nav>
</section>
<footer>
<span>v0.16.0</span>
</footer>
</aside>Header and footer
<aside class="sidebar" aria-label="Sidebar" style="height: 22rem">
<header>
<a href="#" data-slot="brand"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="16" height="20" x="4" y="2" rx="2" ry="2"/><path d="M9 22v-4h6v4"/><path d="M8 6h.01"/><path d="M16 6h.01"/><path d="M12 6h.01"/><path d="M12 10h.01"/><path d="M12 14h.01"/><path d="M16 10h.01"/><path d="M16 14h.01"/><path d="M8 10h.01"/><path d="M8 14h.01"/></svg><span>Acme Inc</span></a>
</header>
<section>
<nav aria-label="Account">
<ul>
<li><a href="#" aria-current="page">Overview</a></li>
<li><a href="#">Members</a></li>
<li><a href="#">Billing</a></li>
<li><a href="#">Settings</a></li>
</ul>
</nav>
</section>
<footer>
<span data-slot="brand">Ada Lovelace</span>
<span>ada@example.com</span>
</footer>
</aside>Scrollable content
<aside class="sidebar" aria-label="Sidebar" style="height: 16rem">
<header>
<span data-slot="brand">Components</span>
</header>
<section tabindex="0" aria-label="Component navigation">
<nav aria-label="Components">
<ul>
<li><a href="#" aria-current="page">Alert</a></li>
<li><a href="#">Avatar</a></li>
<li><a href="#">Badge</a></li>
<li><a href="#">Button</a></li>
<li><a href="#">Card</a></li>
<li><a href="#">Checkbox</a></li>
<li><a href="#">Dialog</a></li>
<li><a href="#">Field</a></li>
<li><a href="#">Input</a></li>
<li><a href="#">Progress</a></li>
<li><a href="#">Select</a></li>
<li><a href="#">Sidebar</a></li>
<li><a href="#">Table</a></li>
<li><a href="#">Tabs</a></li>
<li><a href="#">Textarea</a></li>
<li><a href="#">Toast</a></li>
</ul>
</nav>
</section>
<footer>
<span>16 components</span>
</footer>
</aside>Mobile
<button type="button" class="btn" data-variant="outline">
Open navigation
</button>
<dialog class="sheet" id="demo-sidebar-mobile" data-side="inline-start" data-size="sm" aria-labelledby="demo-sidebar-mobile-brand">
<div style="padding: 0">
<aside class="sidebar" aria-label="Mobile navigation" style="width: 100%; border-inline-end-width: 0">
<header>
<h3 data-slot="brand" id="demo-sidebar-mobile-brand">Acme Inc</h3>
<form method="dialog" style="margin-inline-start: auto">
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close navigation"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
</form>
</header>
<section>
<nav aria-label="Application">
<ul>
<li><a href="#" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="4 17 10 11 4 5"/><line x1="12" x2="20" y1="19" y2="19"/></svg><span>Playground</span></a></li>
<li><a href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-icon="inline-start"><path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg><span>Models</span></a></li>
<li><a href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg><span>Documentation</span></a></li>
<li><a href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg><span>Settings</span></a></li>
</ul>
</nav>
</section>
<footer>
<span>v0.16.0</span>
</footer>
</aside>
</div>
</dialog>Right-to-left
<aside class="sidebar" dir="rtl" lang="ar" aria-label="الشريط الجانبي" style="height: 26rem">
<header>
<span data-slot="brand">شركة أكمي</span>
</header>
<section>
<nav aria-labelledby="demo-sidebar-rtl-platform">
<header>
<h3 id="demo-sidebar-rtl-platform">المنصة</h3>
<button type="button" data-slot="group-action" aria-label="إضافة مشروع"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="M12 5v14"/></svg></button>
</header>
<ul>
<li><a href="#" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="4 17 10 11 4 5"/><line x1="12" x2="20" y1="19" y2="19"/></svg><span>ملعب</span></a></li>
<li><a href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-icon="inline-start"><path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg><span>النماذج</span></a></li>
<li>
<details class="collapsible" open>
<summary>
التوثيق
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
</summary>
<ul>
<li><a href="#">مقدمة</a></li>
<li><a href="#">ابدأ</a></li>
<li><a href="#">الدروس</a></li>
</ul>
</details>
</li>
<li>
<a href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg><span>هندسة التصميم</span></a>
<span data-slot="menu-badge">٣</span>
</li>
</ul>
</nav>
</section>
<footer>
<span>الإصدار 0.16.0</span>
</footer>
</aside>Accessibility and behavior
- Composition, not a stateful widget. Use an aside with header/section/footer; active links use aria-current="page". Each nav group takes its name from a heading in its header or [data-slot="group-label"], with an optional [data-slot="group-action"] button. Rows accept one trailing [data-slot="menu-badge"] or [data-slot="menu-action"]; collapsible details and nested uls form submenus. The section scrolls, and the mobile composition uses a labelled sheet.
Files
components/sidebar.cssbasestyles/nova/sidebar.cssstyleInstall contract
The CLI writes the base file under components/, the visual file for the selected style under styles/<name>/, and any primitive dependency underprimitives/. The generated index.css imports them in the right layer order.