UNPKG

@wix/design-system

Version:

@wix/design-system

97 lines (94 loc) 3.25 kB
### title - type: ReactNode - description: Sets text title for the modal; can be used in conjunction with other components. ### subtitle - type: ReactNode - description: Sets text subtitle for the modal; can be used in conjunction with other components. ### content - type: ReactNode - description: Contains modal’s message in its middle area. <MessageModalLayout/> children are passed as content, too. ### primaryButtonText - type: ReactNode - description: Sets text label for the primary button. ### primaryButtonProps - type: Omit<ButtonProps, "internalDataHook"> - description: Passes on any \<Button/\> properties on the primary button. ### primaryButtonOnClick - type: () => void - description: Defines a call-back function after user clicks on the primary button. ### secondaryButtonText - type: ReactNode - description: Sets text label for the secondary button. ### secondaryButtonProps - type: Omit<ButtonProps, "internalDataHook"> - description: Passes on any \<Button/\> properties on the secondary button. ### secondaryButtonOnClick - type: () => void - description: Defines a call-back function after user clicks on the secondary button. ### actionsSize - type: "tiny" | "small" | "medium" | "large" - description: Determines the action buttons size. ### sideActions - type: ReactNode - description: Contains a checkbox or other components at the start of the footer. ### footnote - type: ReactNode - description: Renders supplementary text or other components at the bottom of the modal. ### footnoteSkin - type: "light" | "neutral" - description: Sets the look and feel of the footnote. ### illustration - type: ReactNode - description: Contains a 120x120 px illustration at the left side of the modal. ### theme - type: "standard" | "destructive" | "premium" - description: use skin prop instead. - deprecated ### children - type: ReactNode - description: Accepts any item as a child element. For all common cases pass a standard text string. ### className - type: string - description: Specifies a CSS class name to be appended to the component’s root element. - internal ### style - type: CSSProperties - description: No description ### dataHook - type: string - description: Applies a data-hook HTML attribute to be used in the tests. ### closeButtonProps - type: ModalCloseButtonProps - description: Close button props. ### helpButtonProps - type: ModalControlButtonProps - description: Help button props. ### onCloseButtonClick - type: MouseEventHandler - description: use `closeButtonProps` instead. - deprecated ### onHelpButtonClick - type: MouseEventHandler - description: use `helpButtonProps` instead. - deprecated ### illustrationClassName - type: string - description: No description ### skin - type: "standard" | "destructive" | "premium" - description: a global skin for the modal, will be applied as stylable state and will affect footer buttons skin. ### headerClassName - type: string - description: No description ### footnoteClassName - type: string - description: No description ### footerClassName - type: string - description: No description ### contentClassName - type: string - description: No description ### primaryButtonTooltipProps - type: Omit<TooltipProps, "children"> - description: No description