Skip to main content
Version: Next

Toast API

import { Toast } from '@editora/ui-react';

Props​

PropTypeDescription
configPartial<ToastConfig>
headlessboolean
maxVisiblenumber
onHide(detail: ToastHideDetail) => void
onShow(detail: ToastShowDetail) => void
positionToastPosition
themeToastTheme

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