Side navigation API
Import
Section titled “Import”import { UNSTABLE_SideNav, UNSTABLE_SideNavList, UNSTABLE_SideNavListItem, UNSTABLE_SideNavListSection,} from '@cimpress-ui/react';API reference
Section titled “API reference”UNSTABLE_SideNav
Section titled “UNSTABLE_SideNav”UNSTABLE_SideNavProps
- ReactNode
children *
Section titled “ children * ” - boolean
isOpen
Section titled “ isOpen ” - (isOpen: boolean) => void
onOpenChange
Section titled “ onOpenChange ” - 'fixed' | 'overlay'
variant
Section titled “ variant ” - Defaults to 'fixed' .
Determines how the side nav is displayed and behaves.
overlay: The side nav slides in as an overlay on top of the main content. This is used when all available screen space is needed for the main content.fixed: The side nav is fixed to the side and includes an expand button to toggle between a compact icon-only view and an expanded view showing labels. On smaller screens, it slides in as an overlay.
UNSTABLE_SideNavList
Section titled “UNSTABLE_SideNavList”UNSTABLE_SideNavListProps
- ReactNode
children *
Section titled “ children * ”
UNSTABLE_SideNavListItem
Section titled “UNSTABLE_SideNavListItem”UNSTABLE_SideNavListItemProps
- StringLikeChildren
children *
Section titled “ children * ” - string
href *
Section titled “ href * ” - boolean
isActive
Section titled “ isActive ” - ReactNode
UNSTABLE_SideNavListSection
Section titled “UNSTABLE_SideNavListSection”UNSTABLE_SideNavListSectionProps
- ReactNode
children *
Section titled “ children * ” - string
label
Section titled “ label ”