braid-design-system@28.2.0
·
1284 commits
to master
since this release
Minor Changes
-
useToast: Add deduplication of toasts (#662)
Passing
keywhen creating new toasts will now remove existing Toasts on screen with the samekeybefore adding the new Toast. This is useful when a toast is created as part of a repeatable process that happens frequently.const showToast = useToast(); showToast({ message: 'There can only be one of me', tone: 'positive', key: 'deduped', });