Skip to content
Hazine

Navigation

2 of 41 shipped. Ways to move between views and positions inside one view.

01 / Tabs

1 of 6 shipped
  • tabs

    A tab row on a hairline where one 2px indicator measures the active tab and slides to it. Use it to switch the top-level sections of a page, such as Overview, Deployments and Settings.

    How it differs. One indicator element is measured against the active tab and moved, so no tab draws its own border. A row wider than its container scrolls, with paging buttons that stop at each end.

    shadcn add @hazine/tabs-underline-sliding-indicator

    Depends on tabs, lucide-react, class-variance-authority

Planned 5

  • Contained pill tabs
  • Vertical tabs with descriptions
  • Tabs that become an accordion
  • Tabs with overflow more menu
  • Closable document tabs

03 / Pagination

0 of 4 shipped

Planned 4

  • Numbered pagination with ellipsis
  • Previous and next with range text
  • Pagination with page size select
  • Pagination with jump to page

05 / Command palettes

0 of 5 shipped

Planned 5

  • Grouped command palette
  • Command palette with nested pages
  • Command palette with prefix scopes
  • Command palette with preview pane
  • Command palette with action footer

Planned 5

  • Horizontal numbered stepper
  • Vertical stepper with detail
  • Branching stepper
  • Stepper with nested sub-steps
  • Stepper with visited steps as links

07 / Tree views

1 of 4 shipped
  • tree views

    Collapsible folder and file tree with indent guides, file type icons and one open file, plus an optional path line. Use it for code browsers and docs sidebars.

    How it differs. Baseline single-select tree: indent guides that darken beside the open file, a dot on a closed folder that holds it, and the full APG keyboard map with typeahead and asterisk.

    shadcn add @hazine/tree-view-file-explorer

    Depends on @hazine/use-controllable-state, lucide-react

Planned 3

  • Tree with inline rename and create
  • Tree with counts and filter
  • Lazy-loaded tree

09 / Switchers and nav items

0 of 4 shipped

Planned 4

  • Workspace switcher
  • Environment switcher
  • Nav item with badge and nested group
  • Bottom navigation bar