NavigationNavbarSimple

Open in Create
Search
astronomic.dev

NavbarSimple

Free

At the top of every page: the brand, the links right after it, and the actions at the end.

File
NavbarSimple.astro
Group
Navigation
Kind
Interactive: inline script
Examples
8
import NavbarSimple from "@astronomic-dev/ui/components/NavbarSimple.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

Links and actions

The brand, the links right after it and the actions at the end. Below the md breakpoint the links fold into a menu button. In a frame, so the breakpoint is real.

main.astro

Your own actions

The actions slot replaces the action buttons, on desktop and in the menu.

Force state
actions-slot.astro

At every width

In a frame, so the md breakpoint is real. Set the width to 390 and open the menu.

responsive.astro

Sticky

With sticky the bar stays at the top as the page scrolls. The kit gives the page scroll-padding-top, so in-page jumps (each note links to itself) and focused links land below the bar, with nothing set on the page. In a frame of fixed height: scroll inside it.

sticky.astro

Floating

With floating the bar sits in from the edges, with the card corners, edge and shadow, and no bottom rule.

floating.astro

Sticky and floating

Both: the bar sticks with a gap above it, and the page beside it takes clicks. In a frame of fixed height: scroll inside it.

sticky-floating.astro

Rolling links

With roll, each link label rolls up on hover and keyboard focus and the same words roll in from below, in the bar and in the menu. It stays still under reduced motion and the calm setting. In a frame, so the breakpoint is real.

roll.astro

Shrink on scroll

With floating and shrink the bar sticks, and once the page scrolls it narrows to its content, centered, with no empty space between the brand, the links and the actions. Back at the top it widens again. Above the md breakpoint only, and with no animation under reduced motion. In a frame of fixed height: scroll inside it.

shrink.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.