Sidebar
The navigation bar at aside of viewport
A sidebar component which handles device resizing and remove scroll bar automatically.
Usage
Sidebar Provider
Prop | Type | Default |
---|---|---|
open | boolean | - |
onOpenChange | (v: boolean) => void | - |
children | ReactNode | - |
Sidebar Trigger
Opens the sidebar on click.
Prop | Type | Default |
---|---|---|
as | ElementType | - |
Sidebar List
Data Attribute | Values | Description |
---|---|---|
data-open | true, false | Is sidebar opening |
Last updated on