GitHub

DaffToastConfiguration

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

interface DaffToastConfiguration {
  duration: number
}

Properties

duration
number

The duration (in milliseconds) for which a toast remains visible before dismissal.

While you can set a duration for toasts with actions, it's generally not recommended, as users should have ample time to interact with them.