Toast API
import { Toast } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
config | Partial<ToastConfig> | |
headless | boolean | |
maxVisible | number | |
onHide | (detail: ToastHideDetail) => void | |
onShow | (detail: ToastShowDetail) => void | |
position | ToastPosition | |
theme | ToastTheme |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-toast>
Toast renders the ui-toast custom element from @editora/ui-core, which can also be used without React.
Attributes: headless, max-visible, position
Events: hide, show