Atelier UI

Search components…

Search components…

Announcement Bar

A dismissible top announcement banner with a badge, message, arrow link and close button.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

AnnouncementBarProps

Also accepts all props of Omit<React.ComponentProps<"div">, "children">

PropTypeDefaultDescription
badgestring"New"—
message* requiredReact.ReactNode——
linkLabelstring"Learn more"—
hrefstring"#"—
dismissedboolean—Controlled dismissed state
onDismiss() => void—Called when the user closes the bar

Install

$ npx shadcn@latest add https://chromotion.dev/r/announcement-bar.json

More like this