We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bf1aaa commit 15605eeCopy full SHA for 15605ee
site/pages/docs/use-toaster.mdx
@@ -166,30 +166,6 @@ const AnimatedNotifications = () => {
166
};
167
```
168
169
-### Multiple Toaster Example
170
-
171
-```jsx
172
-const App = () => {
173
- // Main notifications
174
- const main = useToaster();
175
176
- // Sidebar notifications
177
- const sidebar = useToaster({ duration: 3000 }, 'sidebar');
178
179
- return (
180
- <div>
181
- <MainNotifications {...main} />
182
- <SidebarNotifications {...sidebar} />
183
184
- <button onClick={() => toast('Main notification')}>Main Toast</button>
185
186
- <button onClick={() => toast('Sidebar toast', { toasterId: 'sidebar' })}>
187
- Sidebar Toast
188
- </button>
189
- </div>
190
- );
191
-};
192
-```
193
194
## Usage with React Native
195
0 commit comments