webiny-js
webiny-js copied to clipboard
feat(admin-ui): Toast component
This PR adds the Toast component to the @webiny/admin-ui package.
We are exporting a props-based flat component based on the following radix component.
The new component is fully compatible with the old Snackbar component, but some refactoring is needed when UI tokens are defined.
The useSnackbar hook is fully compatible with the new Toast component. Refactoring the hook will be necessary; a separate PR will address it.