Dismissible announcement bar is a Pro cta block for shadcn/ui. It is built from the Badge and Button components with lucide-react, and installs as a single file you own and can edit.
It only uses semantic tokens such as bg-background, text-muted-foreground and border-border, so it follows your theme, radius and fonts and switches with dark mode. It is responsive from desktop to mobile; the width controls above the preview show each size. The same layout is in the shadcn/ui Pro Figma kit, so design and code start from one source.