Centered announcement bar filled with the primary color and primary-foreground text, an arrow link and a dismiss button; the message shortens below the sm breakpoint.
import {
Banner,
BannerContent,
BannerDismiss,
BannerLink,
} from "@/components/banner/banner"
// The copy: change text here, not in the markup.
const COPY = {
news: "Orbcore for teams is open to everyone, with no waitlist.",
// Replaces news below the sm breakpoint, so the banner holds one line.
newsShort: "Orbcore for teams is open to all.",
newsLink: "Start a team",
} as const
export default function MinimalBanner03() {
return (
<Banner variant="center" className="bg-primary text-primary-foreground">
<BannerContent>
<p>
<span className="sm:hidden">{COPY.newsShort}</span>
<span className="max-sm:hidden">{COPY.news}</span>
</p>
<BannerLink href="#">{COPY.newsLink}</BannerLink>
</BannerContent>
<BannerDismiss />
</Banner>
)
}
pnpm dlx shadcn add @01orbital/minimal-banner-03npx shadcn add @01orbital/minimal-banner-03yarn shadcn add @01orbital/minimal-banner-03bunx --bun shadcn add @01orbital/minimal-banner-03Free under the MIT license. Add the @01orbital registry to components.json once (install guide), then run the command.
It lands at components/blocks/banner/minimal-banner-03/index.tsx, as source you own and edit.
import MinimalBanner03 from "@/components/blocks/banner/minimal-banner-03"
export default function Example() {
return <MinimalBanner03 />
}Registry pieces it installs with it:
bannerNew Feature Badge Banner
Accent-colored banner with a New badge before the message, an arrow link to the feature and a dismiss button. A shorter line swaps in on small screens.
Raised Referral Banner
Start-aligned referral banner on the raised surface, with a top highlight and soft drop shadow lifting it off the page, plus an invite link and dismiss button.