@wix/design-system
Version:
@wix/design-system
67 lines (64 loc) • 2.1 kB
Markdown
### as
- type: "button"
- description: Render as 'button' element.
### onClick
- type: MouseEventHandler
- description: Click event handler.
### onMouseEnter
- type: MouseEventHandler
- description: Mouse enter event handler.
### onMouseLeave
- type: MouseEventHandler
- description: Mouse leave event handler.
### disabled
- type: boolean
- description: Disabled.
### autoFocus
- type: boolean
- description: When present, it specifies that a button should automatically get focus when the page loads.
### title
- type: ReactNode
- description: Title.
### dataHook
- type: string
- description: Data attribute for testing purposes.
### skin
- type: "standard" | "dark" | "destructive" | "premium" | "primary"
- description: Item theme (standard, dark, destructive, premium, primary).
- default: standard
### size
- type: "small" | "medium"
- description: Text Size (small, medium).
- default: medium
### prefixIcon
- type: ReactElement
- description: Prefix Icon.
### suffixIcon
- type: ReactElement
- description: Suffix Icon.
### suffix
- type: ReactNode
- description: Suffix Node.
### ellipsis
- type: boolean
- description: Should the text get ellipsed with tooltip, or should it get broken into lines when it reaches the end of its container.
### disabledDescription
- type: string
- description: Tooltip description if item is disabled.
### tooltipModifiers
- type: EllipsisCommonProps
- description: Tooltip floating modifiers.
### highlighted
- type: boolean
- description: If true, the item is highlighted, if false - highlighted styles are not automatically applied on item hover.
### subtitle
- type: string
- description: Text of the list item subtitle.
### shouldFocusWithoutScroll
- type: boolean
- description: Specifies whether page should be scrolled to the focused item.
### ref
- type: null | string | (instance: ListItemActionRefProps | null) => void | RefObject<ListItemActionRefProps>
- 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).