First, you need to import a component to your code (сheck component path is right):
import Toaster from "../../core/Toaster";
To use the component, copy and paste an example from the CODE tab.
Default props of component can be omitted, they are applied automatically. For example, you can skip the prop type='def', because 'def' is the default value of prop 'type'.
message
icon
action
timeout
onDismiss
type
view
color
className
withoutClose
position
usePortal
maxToasts
< Button view = "filled" color = "primary" text = "Toast me" onClick = {() => myRef.show(DemoToast)} / > < Toaster type = 'def' view = 'outlined' color = 'primary' usePortal = {false} position = 'top' ref = {toastRef} maxToasts = {2} withoutClose = 'false' / >