Skip to content

Latest commit

Β 

History

History
99 lines (86 loc) Β· 2.31 KB

File metadata and controls

99 lines (86 loc) Β· 2.31 KB

API reference

← Docs


toastiva

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

<ToastivaProvider />

Common props:

positione.g. "top-center", "bottom-right".
fillSurface fill color.
strokeSurface stroke color.
iosBlurTintiOS blur tint β€” "light", "dark", etc.
disableIOSBlurDisable the iOS blur layer.
stylesStyle overrides β€” see Styling.
animationAnimation config β€” see Animations.

Exported types

import type {
  IToastivaAction,
  IToastivaAnimationConfig,
  IToastivaConfig,
  IToastivaOptions,
  IToastivaPromiseData,
  IToastivaProviderProps,
  IToastivaStyleOverrides,
  IToastivaTheme,
  TToastivaAnimationPreset,
  TToastivaPosition,
  TToastivaType,
} from "toastiva";

Exported enums

import {
  ToastivaAnimationPreset,
  ToastivaBodyLayout,
  ToastivaMode,
  ToastivaPosition,
  ToastivaType,
  ToastivaVerticalPosition,
} from "toastiva";

← Back to docs