Alert 21

PreviousNext

Soft primary alert with subtle background and text styling for secondary messages.

Docs
shadcn-studiocomponent

Preview

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

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

const AlertSoftDemo = () => {
  return (
    <Alert className='bg-primary/10 border-none'>
      <CircleAlertIcon />
      <AlertTitle>File Should be PDF,DOCX,JPG, or PNG.</AlertTitle>
      <AlertDescription>If the file type is not one of this than we can&apos;t get your files</AlertDescription>
    </Alert>
  )
}

export default AlertSoftDemo

Installation

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

Usage

import { Alert21 } from "@/components/alert-21"
<Alert21 />