We're transitioning Studio from Beta to Early Availability
Hygraph
Docs

You are currently reading the Studio Docs. If you were looking for the Classic Docs check here

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