UNPKG

@wix/design-system

Version:

@wix/design-system

34 lines (31 loc) 1.03 kB
### children - type: ReactNode - description: No description ### 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. ### status - type: "error" | "warning" | "success" | "info" - description: Toast status. ### action - type: ReactNode - description: Action element to render. ### duration - type: null | number - description: Number in milliseconds to auto dismiss the toast. If the duration is set to 'null', toast won't be automatically dismissed.