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: website/app/routes/useToast.mdx
+7-6
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,17 @@
1
+
import {
2
+
UseToastVariantExamples,
3
+
UseToastActionsExamples,
4
+
} from'../components/examples/useToast';
5
+
import { siteTitle } from'../globals.ts';
6
+
1
7
exportconst meta = [
2
8
{
3
-
title: 'useToast',
9
+
title: `useToast | ${siteTitle}`,
4
10
description:
5
11
'How to use the useToast hook in your application to render toasts',
6
12
},
7
13
];
8
14
9
-
import {
10
-
UseToastVariantExamples,
11
-
UseToastActionsExamples,
12
-
} from'../components/examples/useToast';
13
-
14
15
# useToast
15
16
16
17
Call `useToast` to create a toast from anywhere in your React application. Make sure you add the [`<ToastProvider />`](/provider) provider to your app first.
0 commit comments