@wix/design-system
Version:
@wix/design-system
34 lines (30 loc) • 968 B
Markdown
### key
- type: string
- description: Toast key
### id
- type: string
- description: Toast id
### className
- type: string
- description: Specifies a CSS class name to be appended to the component’s root element.
### dataHook
- type: string
- description: Applies a data-hook HTML attribute that can be used in the tests.
### dismissible
- type: boolean
- description: Whether the toast should render the dismiss button.
### dismissLabel
- type: string
- description: Aria label for the dismiss button.
### onDismiss
- type: (event?: React.MouseEvent) => void
- description: Callback function called whenever the user clicks the dismiss button.
### status
- type: ToastStatus
- description: Toast status.
### action
- type: React.ReactNode
- description: Action element to render.
### duration
- type: number
- description: Number in milliseconds to auto dismiss the toast. If the duration is set to 'null', toast won't be automatically dismissed.