Alert 26

PreviousNext

Solid info alert with full primary background for prominent informational messages.

Docs
shadcn-studiocomponent

Preview

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

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

const AlertSolidDemo = () => {
  return (
    <Alert className='bg-primary text-primary-foreground border-none'>
      <CircleAlertIcon />
      <AlertTitle>Editing your profile</AlertTitle>
      <AlertDescription className='text-primary-foreground/80'>
        Changes won&apos;t be saved until you click &quot;Update.&quot;
      </AlertDescription>
    </Alert>
  )
}

export default AlertSolidDemo

Installation

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

Usage

import { Alert26 } from "@/components/alert-26"
<Alert26 />