Prop | Default | Type |
---|---|---|
disableSwipe | boolean Whether to disable the ability to swipe to close the toast. | |
duration | 5000 | number Time in milliseconds that each toast should remain visible for. |
label | 'Notification' | string An author-localized label for each toast. Used to help screen reader users associate the interruption with a toast. |
swipeDirection | 'right' | 'right' | 'left' | 'up' | 'down' Direction of pointer swipe that should close the toast. |
swipeThreshold | 50 | number Distance in pixels that the swipe must pass before a close is triggered. |