chakra-ui / chakra-ui-docs

Documentation website for chakra ui
https://chakra-ui.com
MIT License
300 stars 478 forks source link

docs(Toast): Clarified when to use ToastContainer with createStandaloneToast #1622

Closed andrew8088 closed 5 months ago

andrew8088 commented 11 months ago

Resolves confusion found in #7547

📝 Description

Currently, the docs don't accurately describe how to use ToastContainer: it sounds like you need to include ToastContainer in order to create toasts from outside React, but really, you only need to include it to create toasts outside of ChakraProvider.

⛳️ Current behavior (updates)

Docs for createStandaloneToast are incomplete.

🚀 New behavior

Updated the wording of the createStandaloneToast docs.

💣 Is this a breaking change (Yes/No):

No

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
chakra-ui-docs ✅ Ready (Inspect) Visit Preview Jul 18, 2023 9:16pm
cschroeter commented 5 months ago

@andrew8088

Thanks mate.