Skip to content

Component gallery

  1. Sections
  2. Navbar

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Display

ThemeT
Mode
Mode
M
Style
Style
Y
Spacing
Spacing
Radius
Radius
Font size
Font size
Compare
Compare
Effects
S

ShortcutsAlt+Shift+key

Components

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Sections · 3 of 5

Navbar

packages/ui/src/astro/sections/navbar.astro5 stories

Preview settings
Width
Preview width
Stage
Stage
default
Props of default
<Navbar title="CPlusPatch" links={[{ href: "/", label: "Home", active: true }, { href: "/projects", label: "Projects" }, { href: "/blog", label: "Blog" }]} />
Open navbar/default on its own
CPlusPatch
HomeProjectsBlog
final-link
Props of final-link
<Navbar title="CPlusPatch" links={[{ href: "/", label: "Home", active: true }, { href: "/projects", label: "Projects" }, { href: "/blog", label: "Blog" }]} finalLink={{ href: "/contact", label: "Contact" }} />
Open navbar/final-link on its own
CPlusPatch
HomeProjectsBlog
Contact
external
Props of external
<Navbar title="CPlusPatch" links={[{ href: "/", label: "Home", active: true }, { href: "/projects", label: "Projects" }, { href: "/blog", label: "Blog" }, { href: "https://github.com/cpluspatch", label: "GitHub", external: true }]} finalLink={{ href: "https://example.com", label: "Elsewhere", external: true }} />
Open navbar/external on its own
CPlusPatch
HomeProjectsBlogGitHub
Elsewhere
no-links
Props of no-links
<Navbar title="CPlusPatch" links={[]} />
Open navbar/no-links on its own
CPlusPatch
many-links
Props of many-links
<Navbar title="A rather long site title" links={[{ href: "/page-1", label: "Page 1", active: true }, { href: "/page-2", label: "Page 2", active: false }, { href: "/page-3", label: "Page 3", active: false }, { href: "/page-4", label: "Page 4", active: false }, …4 more]} finalLink={{ href: "/contact", label: "Contact" }} />
Open navbar/many-links on its own
A rather long site title
Page 1Page 2Page 3Page 4Page 5Page 6Page 7Page 8
Contact
PreviousSide heroNextFooter