diff --git a/src/components/Snackbar.tsx b/src/components/Snackbar.tsx index 2bd7edd86e..b09979d82d 100644 --- a/src/components/Snackbar.tsx +++ b/src/components/Snackbar.tsx @@ -41,6 +41,10 @@ type Props = React.ComponentProps & { * Text content of the Snackbar. */ children: React.ReactNode; + /** + * Style for the wrapper of the snackbar + */ + wrapperStyle?: StyleProp; style?: StyleProp; ref?: React.RefObject; /** @@ -218,6 +222,7 @@ class Snackbar extends React.Component { onDismiss, theme, style, + wrapperStyle, // eslint-disable-next-line @typescript-eslint/no-unused-vars duration, ...rest @@ -229,7 +234,10 @@ class Snackbar extends React.Component { } return ( - +