Alert 20

PreviousNext

Outline warning alert with amber border and text for warning messages.

Docs
shadcn-studiocomponent

Preview

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

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

const AlertOutlineWarningDemo = () => {
  return (
    <Alert className='border-amber-600 text-amber-600 dark:border-amber-400 dark:text-amber-400'>
      <CircleAlertIcon />
      <AlertTitle>Your password is too weak</AlertTitle>
      <AlertDescription className='text-amber-600/80 dark:text-amber-400/80'>
        Try using a mix of uppercase letters, numbers, and symbols for better security.
      </AlertDescription>
    </Alert>
  )
}

export default AlertOutlineWarningDemo

Installation

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

Usage

import { Alert20 } from "@/components/alert-20"
<Alert20 />