NavigationMobileMenu

Open in Create
Search
astronomic.dev

MobileMenu

Free

On small screens, for the main links in a panel that slides in. Navbar uses it for you.

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

Examples

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

  • Static
  • Interactive
  • Framed

Links and an action

A plain bar with the menu at its end. Open it to see the panel. Navbar shows this menu on narrow screens.

main.astro

On a band

tone="band" on a surface-band row with focus-on-band, as in the Navbar's bar: the open button takes the band's ghost colors and the band's focus ring. The panel stays the page surface, and closeLabel names its close button "Close navigation".

band.astro

With words

openText="Menu": the open button is a bordered pill with the word in place of the icon, the secondary look on its tone. The word names the button.

text.astro

As a card

panel="card": the panel is a floating card that drops in just under the bar, on its side edges, with the card corners, in place of the tall drawer. data-menu-anchor on the row names the bar it lines up with; in a Navbar (menuPanel="card") the bar is the anchor.

card.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.