ToastOptions

ToastOptions(title, description, variantColor, id, isClosable, position, duration)
Determines format of the toast.

Parameters

  • title
    type string
    Toast title

  • description
    type string
    Toast description

  • variantColor
    type string
    Color of the toast
    Key of ToastVariantColor

  • id
    type string | number
    Toast Id

  • isClosable
    type boolean
    If true, the toast can be closed

  • position
    type string
    Position of the toast on the screen
    Key of ToastPosition

  • duration
    type number
    Duration of the toast on the screen