{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/sonner-08","type":"registry:component","title":"Sonner 8","description":"A toast notification with configurable positioning options for all screen corners and centers for e.g. (top-left, top-right, bottom-left, bottom-right, center)","dependencies":["sonner"],"registryDependencies":["button"],"files":[{"path":"src/registry/new-york/components/sonner/sonner-08.tsx","content":"'use client'\n\nimport { toast } from 'sonner'\n\nimport { Button } from '@/registry/new-york/ui/button'\n\nconst SonnerPositionDemo = () => {\n  return (\n    <div className='grid grid-cols-2 gap-2'>\n      <Button\n        variant='outline'\n        onClick={() =>\n          toast('Action completed successfully!', {\n            position: 'top-left'\n          })\n        }\n      >\n        Top Left\n      </Button>\n      <Button\n        variant='outline'\n        onClick={() =>\n          toast('Action completed successfully!', {\n            position: 'top-center'\n          })\n        }\n      >\n        Top Center\n      </Button>\n      <Button\n        variant='outline'\n        onClick={() =>\n          toast('Action completed successfully!', {\n            position: 'top-right'\n          })\n        }\n      >\n        Top Right\n      </Button>\n      <Button\n        variant='outline'\n        onClick={() =>\n          toast('Action completed successfully!', {\n            position: 'bottom-left'\n          })\n        }\n      >\n        Bottom Left\n      </Button>\n      <Button\n        variant='outline'\n        onClick={() =>\n          toast('Action completed successfully!', {\n            position: 'bottom-center'\n          })\n        }\n      >\n        Bottom Center\n      </Button>\n      <Button\n        variant='outline'\n        onClick={() =>\n          toast('Action completed successfully!', {\n            position: 'bottom-right'\n          })\n        }\n      >\n        Bottom Right\n      </Button>\n    </div>\n  )\n}\n\nexport default SonnerPositionDemo\n","type":"registry:component","target":"components/shadcn-studio/sonner/sonner-08.tsx"}]}