UNPKG

@wix/design-system

Version:

@wix/design-system

39 lines (36 loc) 1.42 kB
### disabled - type: boolean - description: Specify whether button should be disabled ### className - type: string - description: Specifies a CSS class name to be appended to the component’s root element. - internal ### onClick - type: MouseEventHandler - description: Defines a callback function which is called every time a button is clicked. ### skin - type: "standard" | "light" | "dark" | "destructive" | "premium" | "inverted" | "transparent" | "ai" - description: Sets the skin of a component ### priority - type: "primary" | "secondary" | "tertiary" - description: Control the priority of a component ### size - type: "tiny" | "small" | "medium" | "large" - description: Control the size of a component ### dataHook - type: string - description: Applies a data-hook HTML attribute that can be used in the tests ### ariaLabel - type: string - description: Define a string value that labels the button element ### ariaLabelledBy - type: string - description: Identify the element that labels the button element ### as - type: "button" - description: Renders component as any other component or a given HTML tag. ### ref - type: null | string | (instance: IconButtonHandle | null) => void | RefObject<IconButtonHandle> - description: Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref).