UNPKG

@wix/design-system

Version:

@wix/design-system

39 lines (36 loc) 1.23 kB
### children - type: ReactNode - description: Can be either: - `<Notification.TextLabel/>` (required) - `<Notification.CloseButton/>` - `<Notification.ActionButton/>` ### dataHook - type: string - description: No description ### show - type: boolean - description: when set to `true`, notification is shown ### theme - type: "standard" | "error" | "warning" | "premium" | "success" - description: use `skin` instead - default: 'standard' - deprecated ### skin - type: "standard" | "error" | "warning" | "premium" | "success" - description: Notification skin ### type - type: "sticky" | "global" | "local" - description: Sets how <Notification/> should be displayed: - `type="global"` will take up space and push the content down. - `type="local"` will not take up space and will be displayed on top of content - `type="sticky"` will not take up space and will be displayed at the top of whole page and on top of content (position: fixed;) ### autoHideTimeout - type: number - description: When provided, then the Notification will be hidden after the specified timeout. ### zIndex - type: number - description: Notification z-index ### onClose - type: (source: string) => void - description: No description - default: null