components / sidebar

sidebar.

grouped docs sidebar with active-item highlighting and an optional search filter. framework-agnostic links via linkComponent.

installation
bunx @justin06lee/chrome@latest add sidebar
props
nametypedefaultdescription
groupsSidebarGroup[]-{ label, items: { label, href }[] }[] — the nav sections.
activeHrefstring-href of the current page; the exact-matching item gets the active treatment.
searchablebooleanfalserenders a search input above the groups that filters items by label.
searchPlaceholderstring'search…'placeholder for the search input.
linkComponentReact.ElementType'a'anchor element/component for items — pass your router's Link.
classNamestring-extra classes on the root <aside>.