Alert 30

PreviousNext

Solid destructive alert with full red background for prominent error messages.

Docs
shadcn-studiocomponent

Preview

Loading preview…
registry/new-york/components/alert/alert-30.tsx
import { TriangleAlertIcon } from 'lucide-react'

import { Alert, AlertTitle, AlertDescription } from '@/registry/new-york/ui/alert'

const AlertSolidDestructiveDemo = () => {
  return (
    <Alert className='bg-destructive dark:bg-destructive/60 border-none text-white'>
      <TriangleAlertIcon />
      <AlertTitle>Couldn&apos;t save changes</AlertTitle>
      <AlertDescription className='text-white/80'>Please try again or reload the page.</AlertDescription>
    </Alert>
  )
}

export default AlertSolidDestructiveDemo

Installation

npx shadcn@latest add @shadcn-studio/alert-30

Usage

import { Alert30 } from "@/components/alert-30"
<Alert30 />