NavigationAnnouncementSplit

Open in Create
Search
astronomic.dev

AnnouncementSplit

Pro

For a wide bar: a label at the start, the message in the middle, and the action with the time left at the end.

File
AnnouncementSplit.astro
Group
Navigation
Kind
Interactive: inline script
Examples
2
import AnnouncementSplit from "@astronomic/ui-pro/components/AnnouncementSplit.astro";

Examples

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

  • Static
  • Interactive
  • Framed

A wide bar in three parts

From a 48rem bar: the label at the start, the message in the middle, and the time left with the link at the end, then the close button. Narrower, it stacks as AnnouncementAction does. It sits above a sticky Navbar and scrolls away.

main.astro

In a narrow box

In a box 24rem wide: the bar reads its own width, not the page's, so it stacks: the label and the message, the time left, then the link.

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