UNPKG

@wix/design-system

Version:

@wix/design-system

36 lines (33 loc) 1.17 kB
### dataHook - type: string - description: Applies a data-hook HTML attribute that can be used in the tests. ### className - type: string - description: Specifies a CSS class name to be appended to the component’s root element. - internal ### id - type: string - description: Toast id ### 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?: MouseEvent<Element, MouseEvent> | undefined) => void - description: Callback function called whenever the user clicks the dismiss button. ### children - type: ReactNode - description: Content to display in the toast. ### prefixIcon - type: false | IconElement - description: Custom icon displayed at the start of the toast content. - default: `<Icons.ArrowBentUpLeft />` ### onAction - type: MouseEventHandler - description: Callback triggered when the toast action is performed. ### duration - type: null | number - description: Time in milliseconds before the toast dismisses automatically. When set to `0` or `null`, the toast remains indefinitely. - default: 0