chakra-ui / chakra-ui-docs

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

Promise Toast missing documented functionality #1683

Open HollaG opened 9 months ago

HollaG commented 9 months ago

Subject

Toast

Description

Currently, the only example given in the documentation doesn't show how to use the result of the resolved promise in the Toast.

image

However, looking in https://github.com/marek-sed/chakra-ui/blob/fec70fbab9a548d0644c8da6b8e629b9ccc62f87/packages/toast/test/use-toast.test.tsx#L95, it can be seen that there are callback functions that can be passed in success and error, and not just the options object.