UNPKG

@wix/design-system

Version:

@wix/design-system

32 lines (29 loc) 1.05 kB
### onClick - type: MouseEventHandler - description: Defines a callback handler. Handler is called whenever a button is clicked. ### iconSize - type: "small" | "medium" - description: Controls the size of a plus icon. - default: 'small' ### disabled - type: boolean - description: Specify whether button should be disabled or not ### fill - type: string - description: Defines button fill value in string format. Accepts HEX colors and gradients. ### tooltipContent - type: ReactNode - description: Specifies a message to display on button hover. ### tooltipProps - type: TooltipCommonProps - description: Allows to pass tooltip common props. ### dataHook - type: string - description: Applies a 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 ### icon - type: ReactNode - description: Overrides a default plus icon to any WSR icon. Do not work together with `iconSize`. Icon size has to be controlled manually.