UNPKG

@wix/design-system

Version:

@wix/design-system

28 lines (24 loc) 745 B
### key - type: string - description: Toast key ### role - type: "alert" | "status" - description: Aria role for the toast. ### 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.