UNPKG

@wix/design-system

Version:

@wix/design-system

97 lines (93 loc) 3.15 kB
### title - type: ReactNode - description: The modal's title ### subtitle - type: ReactNode - description: The modal's subtitle ### content - type: ReactNode - description: the content you want to render in the modal, children passed directly will be treated as `content` as well ### primaryButtonText - type: ReactNode - description: a text for the primary action button ### primaryButtonProps - type: Omit<ButtonProps, "dataHook"> - description: Passed to the primary action button as props without any filter / mutation ### primaryButtonOnClick - type: () => void - description: a callback for when the primary action button is clicked ### secondaryButtonText - type: ReactNode - description: a text for the secondary action button ### secondaryButtonProps - type: Omit<ButtonProps, "dataHook"> - description: Passed to the secondary button as props without any filter / mutation ### secondaryButtonOnClick - type: () => void - description: callback for when the secondary action button is clicked ### actionsSize - type: ButtonSize - description: will determine the action buttons size ### sideActions - type: ReactNode - description: side actions node, to be rendered as the first element on the same row as the action buttons ### footnote - type: ReactNode - description: a footnote node, to be rendered at the very bottom of the modal ### footnoteSkin - type: FootnoteSkin - description: Sets the look and feel of the footnote ### illustration - type: ReactNode - description: The illustration src or the illustration node itself ### linkText - type: ReactNode - description: When not provided, the primary link will not be rendered ### linkOnClick - type: () => void - description: callback for when the link is clicked ### skin - type: "standard" | "premium" - description: a global skin for the modal, will be applied as stylable state and will affect footer buttons skin ### theme - type: "standard" | "premium" - description: No description ### className - type: string - description: Specifies a CSS class name to be appended to the component’s root element. ### style - type: CSSProperties - description: No description ### dataHook - type: string - description: Applies a data-hook HTML attribute to be used in the tests. ### closeButtonProps - type: ModalControlButtonProps - description: Close button props. ### helpButtonProps - type: ModalControlButtonProps - description: Help button props. ### onCloseButtonClick - type: MouseEventHandler<HTMLButtonElement> - description: No description ### onHelpButtonClick - type: MouseEventHandler<HTMLButtonElement> - description: No description ### illustrationClassName - type: string - description: No description ### 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