Serafim

Alert

Component 4

About

Alert in shadcn/ui format

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

Code

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

Usage.tsx

import { Alert } from "@/components/ui/alert"
import { TriangleAlert, ArrowRight } from "lucide-react"

function AlertWithLink() {
  return (
    <Alert
      layout="row"
      icon={
        <TriangleAlert className="text-amber-500" size={16} strokeWidth={2} />
      }
    >
      <div className="flex grow justify-between gap-3">
        <p className="text-sm">Some information is missing!</p>
        <a href="#" className="group whitespace-nowrap text-sm font-medium">
          Link
          <ArrowRight
            className="-mt-0.5 ms-1 inline-flex opacity-60 transition-transform group-hover:translate-x-0.5"
            size={16}
            strokeWidth={2}
          />
        </a>
      </div>
    </Alert>
  )
}

export { AlertWithLink }

Dependencies

More by Serafim

View all
  • Spline Scene

    Spline Scene

    9.8K
  • Testimonials with Marquee

    Testimonials with Marquee

    2.4K
  • Gradient Button

    Gradient Button

    2K
  • Pixel Canvas

    Pixel Canvas

    926
  • Animated Blur Number

    Animated Blur Number

    834
  • Empty State

    Empty State

    798
  • Balloons

    Balloons

    788
  • Status Badge

    Status Badge

    693