β Docs
| Method |
Signature |
success |
(title, options?) => id |
error |
(title, options?) => id |
info |
(title, options?) => id |
warning |
(title, options?) => id |
custom |
(render, options?) => id |
promise |
(promise, data) => id |
update |
(id, options) => void |
dismiss |
(id) => void |
dismissAll |
() => void |
Common props:
position | e.g. "top-center", "bottom-right". |
fill | Surface fill color. |
stroke | Surface stroke color. |
iosBlurTint | iOS blur tint β "light", "dark", etc. |
disableIOSBlur | Disable the iOS blur layer. |
styles | Style overrides β see Styling. |
animation | Animation config β see Animations. |
import type {
IToastivaAction,
IToastivaAnimationConfig,
IToastivaConfig,
IToastivaOptions,
IToastivaPromiseData,
IToastivaProviderProps,
IToastivaStyleOverrides,
IToastivaTheme,
TToastivaAnimationPreset,
TToastivaPosition,
TToastivaType,
} from "toastiva";
import {
ToastivaAnimationPreset,
ToastivaBodyLayout,
ToastivaMode,
ToastivaPosition,
ToastivaType,
ToastivaVerticalPosition,
} from "toastiva";
β Back to docs