frontend / shared/ui/ToastProvider / ToastProvider
Function: ToastProvider()
ToastProvider(
__namedParameters):Element
Defined in: shared/ui/ToastProvider.tsx:38
Provides toast notifications for React tree inside.
Wrap application root with this component and use useToast anywhere inside the tree to show messages. Component renders own container with fixed position. Toasts are stacked vertically and disappear automatically after some time.
Parameters
__namedParameters
children
ReactNode
Returns
Element
Example
tsx
<ToastProvider>
<App />
</ToastProvider>