Sidebar

The navigation bar at aside of viewport

A sidebar component which handles device resizing and remove scroll bar automatically.

Usage

import * as Base from 'next-docs-zeta/sidebar'
 
return (
  <Base.SidebarProvider>
    <Base.SidebarTrigger />
    <Base.SidebarList />
  </Base.SidebarProvider>
)
PropTypeDescription
openboolean?-
onOpenChange(v: boolean) => void-

Opens the sidebar on click.

PropTypeDescription
asElementType-
Data AttributeValuesDescription
data-opentrue, falseIs sidebar opening

Last updated on