You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/components/Toast/Toast.mdx
+34-1Lines changed: 34 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ Paramount exposes a convenience hook `useToast` you can use to create toasts fro
34
34
notify({
35
35
title: 'Title',
36
36
description: 'Description',
37
+
duration: 100000,
37
38
})
38
39
}
39
40
title="Open toast"
@@ -43,6 +44,38 @@ Paramount exposes a convenience hook `useToast` you can use to create toasts fro
43
44
</ToastProvider>
44
45
</Playground>
45
46
46
-
## Options
47
+
## ToastProvider Props
48
+
49
+
_Note_: In order for the `position="bottom"` prop to match the `offset` exactly, try to keep the title and message short. This is due to derived height of the `Toast` being "hard-coded" when `position="bottom"`
0 commit comments