Announcement

A compound badge designed to display an announcement.

Installation

npx love-ui@latest add announcement

Usage

import { Announcement, AnnouncementTag, AnnouncementTitle } from "@/components/announcement"
<Announcement themed="blue">
  <AnnouncementTag>New</AnnouncementTag>
  <AnnouncementTitle>Check out our latest feature!</AnnouncementTitle>
</Announcement>

Features

  • Compound component with Badge-based styling and rounded full appearance
  • Customizable themed mode for different visual styles
  • Built-in tag and title components for consistent layout
  • Supports hover effects with shadow transitions
  • Flexible styling through className props
  • Context-based theming that affects child components

Examples

Themes

Without Tag