@wix/design-system
Version:
@wix/design-system
39 lines (36 loc) • 1.59 kB
Markdown
### dataHook
- type: string
- description: Applied as 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
### type
- type: "standard" | "warning" | "dark" | "destructive" | "premium" | "success" | "preview"
- description: the type of notification
- default: 'standard'
### showCloseButton
- type: boolean
- description: decides if to show the close button
- default: true
### onClose
- type: MouseEventHandler
- description: close button on click handler
### textButtonProps
- type: ButtonAsButtonProps<{ label?: ReactNode; }> | ButtonAsAnchorProps<{ label?: ReactNode; }> | ButtonGenericProps<{ label?: ReactNode; }> | ButtonAsComponentProps<{ label?: ReactNode; }>
- description: props to pass to textButton - renders the TextButton when not empty
### buttonProps
- type: ButtonAsButtonProps<{ label?: ReactNode; }> | ButtonAsAnchorProps<{ label?: ReactNode; }> | ButtonGenericProps<{ label?: ReactNode; }> | ButtonAsComponentProps<{ label?: ReactNode; }>
- description: props to pass to button - renders the Button when not empty
### prefixIcon
- type: ReactElement
- description: An icon element to appear before content
### text
- type: ReactNode
- description: The text content of the notification
### width
- type: string
- description: The width of the content container of the notification
### fullWidth
- type: boolean
- description: Is notification full width (removes left and right border, border radius, more height and bigger paddings)