Serafim

Alert Badge

Component 119

About

Alert Badge inspired by Tremor

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Alert Badge to your project and fits it to your theme.

Code

How Alert Badge is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { AlertBadge } from "@/components/ui/alert-badge"
import {
  RiArrowRightUpLine,
  RiNotificationFill,
  RiWifiLine,
} from '@remixicon/react'

export function AlertBadgeDemo() {
  return (
    <div className="flex flex-wrap justify-center gap-4">
      <AlertBadge 
        variant="error"
        label="Major incident"
        action={{
          label: "Updates",
          href: "#",
          icon: RiArrowRightUpLine
        }}
      />
      <AlertBadge 
        variant="success"
        icon={RiWifiLine}
        label="Connected"
        action={{
          label: "Edit",
          href: "#"
        }}
      />
      <AlertBadge 
        variant="info"
        icon={RiNotificationFill}
        label="1 Notification"
        action={{
          label: "Read",
          href: "#",
          icon: RiArrowRightUpLine
        }}
      />
    </div>
  )
}

Dependencies

More by Serafim

View all
  • Spline Scene

    Spline Scene

    9.5K
  • Testimonials with Marquee

    Testimonials with Marquee

    2.3K
  • Gradient Button

    Gradient Button

    1.9K
  • Pixel Canvas

    Pixel Canvas

    900
  • Animated Blur Number

    Animated Blur Number

    830
  • Empty State

    Empty State

    775
  • Balloons

    Balloons

    755
  • Status Badge

    Status Badge

    646