GitHub

DaffToastConfiguration

interface

import { DaffToastConfiguration } from '@daffodil/design/toast'

Defines optional settings that control the behavior of a toast.

interface DaffToastConfiguration {
  duration: number
}

Properties

duration
number

The duration (in milliseconds) the toast remains visible before dismissal. By default, toasts without actions are dismissed after 5000ms.

While a duration can be set for actionable toasts, it is not recommended since users should have sufficient time to interact with the actions.