Button.types
Props
ButtonProps
ButtonProps:
object
&React.DetailedHTMLProps
<React.ButtonHTMLAttributes
<HTMLButtonElement
>,HTMLButtonElement
>
Type declaration
Member | Type |
---|---|
active | boolean |
breakPointSize | BreakPointSize |
customStyle | string |
disabled | boolean |
greyBg | boolean |
hover | boolean |
hoverColors | object |
hoverColors.background | Color |
hoverColors.border | Color |
hoverColors.icon | Color |
hoverColors.text | Color |
icon | React.ReactElement |
iconDirection | "left" | "right" |
iconOnly | boolean |
label | string |
loading | boolean |
plain | boolean |
plainIcon | boolean |
ref | LegacyRef <HTMLButtonElement > |
size | ButtonSize |
solidIcon | boolean |
variant | Variant |
Source
libs/design-system-core/src/components/Button/types.ts:4
ButtonSize
ButtonSize:
Exclude
<BasicSize
,"xl"
>
Source
libs/design-system-core/src/components/Button/types.ts:27
Variant
Variant:
"primary"
|"secondary"
|"text"