{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "alert-example",
  "title": "Alert",
  "registryDependencies": [
    "alert",
    "badge",
    "example"
  ],
  "files": [
    {
      "path": "registry/base-lyra/examples/alert-example.tsx",
      "content": "import {\n  Example,\n  ExampleWrapper,\n} from \"@/registry/base-lyra/components/example\"\nimport {\n  Alert,\n  AlertAction,\n  AlertDescription,\n  AlertTitle,\n} from \"@/registry/base-lyra/ui/alert\"\nimport { Badge } from \"@/registry/base-lyra/ui/badge\"\nimport { Button } from \"@/registry/base-lyra/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function AlertExample() {\n  return (\n    <ExampleWrapper className=\"lg:grid-cols-1\">\n      <AlertExample1 />\n      <AlertExample2 />\n      <AlertExample3 />\n      <AlertExample4 />\n    </ExampleWrapper>\n  )\n}\n\nfunction AlertExample1() {\n  return (\n    <Example title=\"Basic\">\n      <div className=\"mx-auto flex w-full max-w-lg flex-col gap-4\">\n        <Alert>\n          <AlertTitle>Success! Your changes have been saved.</AlertTitle>\n        </Alert>\n        <Alert>\n          <AlertTitle>Success! Your changes have been saved.</AlertTitle>\n          <AlertDescription>\n            This is an alert with title and description.\n          </AlertDescription>\n        </Alert>\n        <Alert>\n          <AlertDescription>\n            This one has a description only. No title. No icon.\n          </AlertDescription>\n        </Alert>\n      </div>\n    </Example>\n  )\n}\n\nfunction AlertExample2() {\n  return (\n    <Example title=\"With Icons\">\n      <div className=\"mx-auto flex w-full max-w-lg flex-col gap-4\">\n        <Alert>\n          <IconPlaceholder\n            lucide=\"CircleAlertIcon\"\n            tabler=\"IconExclamationCircle\"\n            hugeicons=\"AlertCircleIcon\"\n            phosphor=\"WarningCircleIcon\"\n            remixicon=\"RiErrorWarningLine\"\n          />\n          <AlertTitle>\n            Let&apos;s try one with icon, title and a <a href=\"#\">link</a>.\n          </AlertTitle>\n        </Alert>\n        <Alert>\n          <IconPlaceholder\n            lucide=\"CircleAlertIcon\"\n            tabler=\"IconExclamationCircle\"\n            hugeicons=\"AlertCircleIcon\"\n            phosphor=\"WarningCircleIcon\"\n            remixicon=\"RiErrorWarningLine\"\n          />\n          <AlertDescription>\n            This one has an icon and a description only. No title.{\" \"}\n            <a href=\"#\">But it has a link</a> and a <a href=\"#\">second link</a>.\n          </AlertDescription>\n        </Alert>\n\n        <Alert>\n          <IconPlaceholder\n            lucide=\"CircleAlertIcon\"\n            tabler=\"IconExclamationCircle\"\n            hugeicons=\"AlertCircleIcon\"\n            phosphor=\"WarningCircleIcon\"\n            remixicon=\"RiErrorWarningLine\"\n          />\n          <AlertTitle>Success! Your changes have been saved</AlertTitle>\n          <AlertDescription>\n            This is an alert with icon, title and description.\n          </AlertDescription>\n        </Alert>\n        <Alert>\n          <IconPlaceholder\n            lucide=\"CircleAlertIcon\"\n            tabler=\"IconExclamationCircle\"\n            hugeicons=\"AlertCircleIcon\"\n            phosphor=\"WarningCircleIcon\"\n            remixicon=\"RiErrorWarningLine\"\n          />\n          <AlertTitle>\n            This is a very long alert title that demonstrates how the component\n            handles extended text content and potentially wraps across multiple\n            lines\n          </AlertTitle>\n        </Alert>\n        <Alert>\n          <IconPlaceholder\n            lucide=\"CircleAlertIcon\"\n            tabler=\"IconExclamationCircle\"\n            hugeicons=\"AlertCircleIcon\"\n            phosphor=\"WarningCircleIcon\"\n            remixicon=\"RiErrorWarningLine\"\n          />\n          <AlertDescription>\n            This is a very long alert description that demonstrates how the\n            component handles extended text content and potentially wraps across\n            multiple lines\n          </AlertDescription>\n        </Alert>\n        <Alert>\n          <IconPlaceholder\n            lucide=\"CircleAlertIcon\"\n            tabler=\"IconExclamationCircle\"\n            hugeicons=\"AlertCircleIcon\"\n            phosphor=\"WarningCircleIcon\"\n            remixicon=\"RiErrorWarningLine\"\n          />\n          <AlertTitle>\n            This is an extremely long alert title that spans multiple lines to\n            demonstrate how the component handles very lengthy headings while\n            maintaining readability and proper text wrapping behavior\n          </AlertTitle>\n          <AlertDescription>\n            This is an equally long description that contains detailed\n            information about the alert. It shows how the component can\n            accommodate extensive content while preserving proper spacing,\n            alignment, and readability across different screen sizes and\n            viewport widths. This helps ensure the user experience remains\n            consistent regardless of the content length.\n          </AlertDescription>\n        </Alert>\n      </div>\n    </Example>\n  )\n}\n\nfunction AlertExample3() {\n  return (\n    <Example title=\"Destructive\">\n      <div className=\"mx-auto flex w-full max-w-lg flex-col gap-4\">\n        <Alert variant=\"destructive\">\n          <IconPlaceholder\n            lucide=\"CircleAlertIcon\"\n            tabler=\"IconExclamationCircle\"\n            hugeicons=\"AlertCircleIcon\"\n            phosphor=\"WarningCircleIcon\"\n            remixicon=\"RiErrorWarningLine\"\n          />\n          <AlertTitle>Something went wrong!</AlertTitle>\n          <AlertDescription>\n            Your session has expired. Please log in again.\n          </AlertDescription>\n        </Alert>\n        <Alert variant=\"destructive\">\n          <IconPlaceholder\n            lucide=\"CircleAlertIcon\"\n            tabler=\"IconExclamationCircle\"\n            hugeicons=\"AlertCircleIcon\"\n            phosphor=\"WarningCircleIcon\"\n            remixicon=\"RiErrorWarningLine\"\n          />\n          <AlertTitle>Unable to process your payment.</AlertTitle>\n          <AlertDescription>\n            <p>\n              Please verify your <a href=\"#\">billing information</a> and try\n              again.\n            </p>\n            <ul className=\"list-inside list-disc\">\n              <li>Check your card details</li>\n              <li>Ensure sufficient funds</li>\n              <li>Verify billing address</li>\n            </ul>\n          </AlertDescription>\n        </Alert>\n      </div>\n    </Example>\n  )\n}\n\nfunction AlertExample4() {\n  return (\n    <Example title=\"With Actions\">\n      <div className=\"mx-auto flex w-full max-w-lg flex-col gap-4\">\n        <Alert>\n          <IconPlaceholder\n            lucide=\"CircleAlertIcon\"\n            tabler=\"IconExclamationCircle\"\n            hugeicons=\"AlertCircleIcon\"\n            phosphor=\"WarningCircleIcon\"\n            remixicon=\"RiErrorWarningLine\"\n          />\n          <AlertTitle>The selected emails have been marked as spam.</AlertTitle>\n          <AlertAction>\n            <Button size=\"xs\">Undo</Button>\n          </AlertAction>\n        </Alert>\n        <Alert>\n          <IconPlaceholder\n            lucide=\"CircleAlertIcon\"\n            tabler=\"IconExclamationCircle\"\n            hugeicons=\"AlertCircleIcon\"\n            phosphor=\"WarningCircleIcon\"\n            remixicon=\"RiErrorWarningLine\"\n          />\n          <AlertTitle>The selected emails have been marked as spam.</AlertTitle>\n          <AlertDescription>\n            This is a very long alert title that demonstrates how the component\n            handles extended text content.\n          </AlertDescription>\n          <AlertAction>\n            <Badge variant=\"secondary\">Badge</Badge>\n          </AlertAction>\n        </Alert>\n      </div>\n    </Example>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}