UNPKG

@wix/design-system

Version:

@wix/design-system

54 lines (51 loc) 1.61 kB
### children - type: ReactNode - description: No description ### dataHook - type: string - description: Applied as data-hook HTML attribute that can be used in the tests ### skin - type: "standard" | "warning" | "premium" | "danger" | "success" | "preview" | "experimentalDark" - description: Sets the look and feel of the component ### appearance - type: "standard" | "warning" | "premium" | "danger" | "success" | "preview" | "experimentalDark" - description: use skin prop instead - deprecated ### title - type: ReactNode - description: Adds text as the title ### size - type: "small" | "medium" - description: Controls the component padding ### showCloseButton - type: boolean - description: decide if to show the close button ### onClose - type: MouseEventHandler - description: When provided, will make a close button appear and invoke it upon click ### onAction - type: MouseEventHandler - description: When provided, will make an action button appear and invoke it upon click ### actionText - type: ReactNode - description: Text or any child component for the action button ### actionDisabled - type: boolean - description: Disables the action button ### fullWidth - type: boolean - description: Set the content width to 100% ### layout - type: "horizontal" | "vertical" - description: Controls the component layout - default: vertical ### border - type: "standard" | "topBottom" - description: Controls the component border - default: standard ### showPrefixIcon - type: boolean - description: Enables showing prefix icon ### prefixIcon - type: ReactNode - description: Overrides default prefix icon