PolyHunter

Sidebar

Hover decoration requires a fine pointer and hover support at widths of 768px or more. Phone and touch controls keep tap actions and keyboard focus without rollover effects.

Collapsible app rail: logo + collapse toggle in the header (toggle sits below the logo when collapsed), scrollable content, divider + footer. surface-chrome background, subtle right border, 256px expanded / 72px collapsed. Expanded and collapsed states get their own content via children and collapsedContent (icon-only by convention). Logos default to the library assets (Boxed Horizontal Green expanded, Artwork Green collapsed) and are fully overridable. Default logos link to the root page and stay vertically centered in the same 72px header area in expanded and collapsed states. Their accessible link label follows the selected UI locale. Uncontrolled it starts collapsed on mobile and expanded on desktop; hover mode overlays on hover without reflowing siblings.

Playground

Live preview

Page contentThe sidebar width reflows this area when toggled.canvas

Examples

Custom logos

Pass openLogo and closedLogo to override the library defaults — any node works.

Mobile drawer: no collapse toggle

<Sidebar open showCollapseToggle={false}>…</Sidebar>

Usage

import { Sidebar, Button } from "@npolyhunter/ui";
import { LogoutBoldDuotoneIcon } from "@npolyhunter/ui/icons";

// Expanded and collapsed get their own content.
// Logos default to the library assets — override with openLogo/closedLogo.
<Sidebar
  collapsedContent={<IconNav />}
  footer={
    <Button variant="utility" size="small" leftIcon={<LogoutBoldDuotoneIcon />}>
      Log out
    </Button>
  }
>
  <FullNav />
</Sidebar>

Code

<Sidebar mode="fixed" collapsedContent={<IconNav />} footer={…}>
  <FullNav />
</Sidebar>

Used in

Includes use through shared UI components.

AppBack Office