{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/alert-08","type":"registry:component","title":"Alert 8","description":"Multi-action alert with primary background, multiple buttons, and dismissible interface.","dependencies":["lucide-react"],"registryDependencies":["alert","button"],"files":[{"path":"src/registry/new-york/components/alert/alert-08.tsx","content":"'use client'\n\nimport { useState } from 'react'\n\nimport { CircleAlertIcon, XIcon } from 'lucide-react'\n\nimport { Alert, AlertDescription, AlertTitle } from '@/registry/new-york/ui/alert'\nimport { Button } from '@/registry/new-york/ui/button'\n\nconst AlertMultipleActionDemo = () => {\n  const [isActive, setIsActive] = useState(true)\n\n  if (!isActive) return null\n\n  return (\n    <Alert className='bg-primary text-primary-foreground flex justify-between border-none'>\n      <CircleAlertIcon />\n      <div className='flex flex-1 flex-col gap-4'>\n        <div className='flex-1 flex-col justify-center gap-1'>\n          <AlertTitle>A new update is available</AlertTitle>\n          <AlertDescription className='text-primary-foreground/80'>\n            Includes the at new dashboard View. Pages end exports will now load taster\n          </AlertDescription>\n        </div>\n        <div className='flex items-center gap-4'>\n          <Button className='bg-secondary/10 hover:bg-secondary/20 focus-visible:bg-secondary/20 h-7 cursor-pointer rounded-md px-2'>\n            Skip this update\n          </Button>\n          <Button variant='secondary' className='h-7 cursor-pointer rounded-md px-2'>\n            Install now\n          </Button>\n        </div>\n      </div>\n      <button className='size-5 cursor-pointer' onClick={() => setIsActive(false)}>\n        <XIcon className='size-5' />\n        <span className='sr-only'>Close</span>\n      </button>\n    </Alert>\n  )\n}\n\nexport default AlertMultipleActionDemo\n","type":"registry:component","target":"components/shadcn-studio/alert/alert-08.tsx"}]}