
Centered announcement bar on the muted ground with a release note, an arrow link and a dismiss button. A shorter line replaces the message below the md breakpoint.
blocks/banner/minimal-banner-01/index.tsx
import {
Banner,
BannerContent,
BannerDismiss,
BannerLink,
} from "@/components/banner/banner"
// The copy: change text here, not in the markup.
const COPY = {
news: "Orbcore 3.2 is out, with shared calendars and search that keeps up.",
// Replaces news below the md breakpoint, so the banner holds one line.
newsShort: "Orbcore 3.2 is out.",
newsLink: "Read the release notes",
} as const
export default function MinimalBanner01() {
return (
<Banner variant="center" className="bg-muted text-foreground">
<BannerContent>
<p>
<span className="md:hidden">{COPY.newsShort}</span>
<span className="max-md:hidden">{COPY.news}</span>
</p>
<BannerLink href="#">{COPY.newsLink}</BannerLink>
</BannerContent>
<BannerDismiss />
</Banner>
)
}