Skip to content

Announcement

Free

A small rounded link above a hero headline that points to news, such as a launch post. A light can run around its border for a big launch.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Import Announcement and compose its parts.

announcement.tsx

Announcement

<a>
PropTypeDefaultDescription
size"default""lg""sm""default"
variant"beam""inverse""outline""secondary""shine""outline"
loopDurationnumber4Seconds of one loop of the light: one lap of the beam, one cycle of the shine (the band crosses in the first 30%, then waits).
From Base UIUseRenderBase UI docs
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<a> attributes—Every other attribute goes to the <a>, with a ref.

AnnouncementTag

<div>
PropTypeDefaultDescription
variant"dashed""default""destructive""ghost""info""link""media""outline""secondary""success""warning"—
From Base UIUseRenderBase UI docs
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

AnnouncementTitle

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

AnnouncementSeparator

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

AnnouncementArrow

<svg>
PropTypeDefaultDescription
altstring—
colorstring—
weight"bold""duotone""fill""light""regular""thin"—
mirroredboolean—
...props<svg> attributes—Every other attribute goes to the <svg>, with a ref.
  • Put it above the headline of a landing page or a docs home.
  • Use beam or shine for a big launch, and outline for a quiet one.
  • Pass a router link through render, or a <div /> for a pill with no link.
  • For a bar across the top of every page, use the Announcement Bar.
  • For a short status word on an item, use a Badge.
TabMoves to the pill.
EnterOpens the link.
Arrow
hover · the arrow moves 2px to the end
Beam and shine
none · one loop of `loopDuration` seconds (4 by default), not a motion token

Built with

Installs with Announcement

Components
Badge
  1. AddedAnnouncement, with Badge.
Open the release