@wix/design-system
Version:
@wix/design-system
36 lines (33 loc) • 1.16 kB
Markdown
### disabled
- type: boolean
- description: applies disabled styles
### autoFocus
- type: boolean
- description: Focus the button on mount
### className
- type: string
- description: Specifies a CSS class name to be appended to the component’s root element.
- internal
### children
- type: ReactNode
- description: Used for passing any
### onClick
- type: MouseEventHandler
- description: Defines a callback function which is called every time a button is clicked.
### skin
- type: "standard" | "light" | "dark" | "transparent" | "standardFilled" | "lightFilled"
- description: skins of closebutton
### size
- type: "small" | "medium" | "large"
- description: size of closebutton
### dataHook
- type: string
- description: string based data hook for testing
### as
- type: "button"
- description: Renders component as any other component or a given HTML tag.
### ref
- type: null | string | (instance: HTMLButtonElement | null) => void | RefObject<HTMLButtonElement>
- 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).