Use a sidebar navigation layout to keep your application content front and center.
Prop
|
Description
|
---|---|
sticky |
When present, makes the sidebar sticky when scrolling.
|
stashable |
When present, allows the sidebar to be toggled on/off on smaller screens.
|
Slot
|
Description
|
---|---|
default |
Content to display within the sidebar, typically including branding, navigation elements, and user profile.
|
CSS
|
Description
|
---|---|
class |
Additional CSS classes applied to the sidebar. Common uses: bg-zinc-50, border-r, etc.
|
Attribute
|
Description
|
---|---|
icon |
The icon to display in the toggle button (e.g., bars-2, x-mark).
|
inset |
Positioning of the toggle button (e.g., left).
|
CSS
|
Description
|
---|---|
class |
Additional CSS classes applied to the toggle button. Common uses: lg:hidden to show only on mobile.
|
Prop
|
Description
|
---|---|
container |
When present, constrains the main content to a container width.
|
Slot
|
Description
|
---|---|
default |
Content to display within the main content area.
|