Banner Blocks for Astro
Astro announcement strips for short messages and a related destination.
Inline announcement
Keep a short announcement and its destination together.
bunx --bun shadcn@latest add @gnostic/banner-inline-announcementnpx shadcn@latest add @gnostic/banner-inline-announcementpnpm dlx shadcn@latest add @gnostic/banner-inline-announcementFloating actions
Give an inset announcement room for two action links.
bunx --bun shadcn@latest add @gnostic/banner-floating-actionsnpx shadcn@latest add @gnostic/banner-floating-actionspnpm dlx shadcn@latest add @gnostic/banner-floating-actionsChoose a banner layout
Choose a banner for a temporary service message or an announcement that belongs across several pages. Keep it short enough that it does not dominate the header.
Pass content from Astro
Pass the title, description, and optional link accepted by the variant. Use the link for the page that explains the notice. If a variant supports dismissal, make sure important information remains available after it closes.
Responsive layout and images
Check the message and action together on a phone. Text should wrap without hiding the close control. These layouts are text-led; an image is rarely needed. Inspect contrast on the selected banner surface in both modes.