@@ -46,8 +53,8 @@ export function Toaster(props: ToastContainerProps): ReactElement {
(
+ (story, {parameters, args}) => (
<>
- {!parameters.disableToastContainer && }
+ {!parameters.disableToastContainer && }
{story()}
>
)
],
args: {
shouldCloseOnAction: false,
- timeout: null
+ timeout: null,
+ placement: undefined
},
argTypes: {
timeout: {
control: 'radio',
options: [null, 5000]
+ },
+ placement: {
+ control: 'select',
+ options: [undefined, 'top start', 'top', 'top end', 'bottom start', 'bottom', 'bottom end']
}
}
};