NavigationAnnouncementText

Open in Create
Search
astronomic.dev

AnnouncementText

Pro

For a short notice above the header: one centered line with a link, and the end date or a countdown in words.

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

Examples

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

  • Static
  • Interactive
  • Framed

A short notice

One centered line: an icon (the icon slot, here Lucide Rocket), the message, its link inline (underlined on hover, an arrow after its words), and the time left in words that tick once a minute (the date with no script). It sits above a sticky Navbar and scrolls away. Close it and reload the frame: it stays closed for the visit.

main.astro

A long message

The line wraps as text does and stays centered, with the end date after it; the close button keeps its place at the end, centered on the text, and the text never runs under it.

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