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 | ({ defaultCollapsed?: true; isCollapsed?: boolean; onCollapseChange?: (isCollapsed: boolean) => void })
UNSTABLE_isCollapsible
Section titled “ UNSTABLE_isCollapsible ” -
Determines if the side navigation can be collapsed down to an icon-only rail, allowing for more screen space when needed.
Setting to
truewill enable collapsibility. Passing an object allows for more advanced configuration, including fully controlled usage outside app shell context.
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 ”