Skip to content

Commit

Permalink
fix: add missing 'swipeable' prop to ToastProps (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
fireflies1988 authored Nov 15, 2024
1 parent 6fb0ff8 commit 0026645
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ export type ToastProps = {
* Default value: `4000`
*/
visibilityTime?: number;
/**
* When `true`, the Toast can be dismissed by a swipe gesture, specified by the `swipeable` prop.
* Default value: `true`
*/
swipeable?: boolean;
/**
* When `true`, the visible Toast automatically hides after a certain number of milliseconds,
* specified by the `visibilityTime` prop.
Expand Down

0 comments on commit 0026645

Please sign in to comment.