Skip to content

    Browse components

    Announcement

    Pill-shaped news link with a highlighted tag, a periodic shine sweep and a chevron that extends into an arrow on hover.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/announcement

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/announcement.json

    Usage

    import { Announcement } from "@/components/ui/announcement";
    
    <Announcement href="/blog/v2" tag="New">
      Introducing Motion primitives 2.0
    </Announcement>

    Props

    PropTypeDefaultDescription
    childrenstring"Introducing Motion primitives 2.0"Announcement text.
    tagstring"New"Highlighted chip text (empty for none).
    shinebooleantruePeriodic light sweep.
    arrowbooleantrueTrailing arrow that extends on hover.
    hrefReactNode—Link target; all anchor attributes are forwarded.
    classNamestring—Extra classes for the root element.