Alert 22

PreviousNext

Soft info alert with blue background and subtle styling for information.

Docs
shadcn-studiocomponent

Preview

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

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

const AlertSoftInfoDemo = () => {
  return (
    <Alert className='border-none bg-sky-600/10 text-sky-600 dark:bg-sky-400/10 dark:text-sky-400'>
      <CircleAlertIcon />
      <AlertTitle>Only certain file types are allowed</AlertTitle>
      <AlertDescription className='text-sky-600/80 dark:text-sky-400/80'>
        You can upload PDF, DOCX, JPG, or PNG files up to 20MB.
      </AlertDescription>
    </Alert>
  )
}

export default AlertSoftInfoDemo

Installation

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

Usage

import { Alert22 } from "@/components/alert-22"
<Alert22 />