43 Pro components and page blocks

Get Pro

Announcement Pill

New

Preview

Customize

Soft
On appear + hover

Usage

import { AnnouncementPill } from "@/components/uibrik/announcement-pill/announcement-pill";

<AnnouncementPill />

Installation

npx shadcn@latest add https://uibrik.com/r/announcement-pill.json
Adds the files to components/uibrik/announcement-pill and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/announcement-pill.

Props

AnnouncementPill
tag
Type string
"New"
Short tag on the left. Empty hides it.
children
Type string
"Introducing the v2 components"
The announcement.
tagStyle
Type "soft" | "solid"
"soft"
Muted tag, or filled with the foreground colour.
shimmer
Type "once" | "hover" | "off"
"once"
When the light runs along the border.
href
Type string
–
Renders a link when set, a button otherwise.
onClick
Type () => void
–
Called when pressed.
className
Type string
–
Classes for the pill.