Sidebar
A real <aside>, the complementary landmark, for secondary content that still makes sense on its own: docs navigation, a table of contents, filters next to a list. aria-label is required because a page can have more than one <aside>, each needs its own accessible name.
Usage
import { Sidebar } from "@kernelui/react";
<Sidebar aria-label="Table of contents">
<ul>
<li>Installation</li>
<li>Usage</li>
</ul>
</Sidebar>Props
| Prop | Type | Default |
|---|---|---|
aria-label | string (required) | — |
Accessibility
- Renders a native
<aside>, exposed as thecomplementarylandmark so assistive tech can skip to or past it independently of the main content. - The required
aria-labeldistinguishes it from any other<aside>on the page.