Skip to main content

Button.types

Props

ButtonProps

ButtonProps: object & React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>

Type declaration

MemberType
activeboolean
breakPointSizeBreakPointSize
customStylestring
disabledboolean
greyBgboolean
hoverboolean
hoverColorsobject
hoverColors.backgroundColor
hoverColors.borderColor
hoverColors.iconColor
hoverColors.textColor
iconReact.ReactElement
iconDirection"left" | "right"
iconOnlyboolean
labelstring
loadingboolean
plainboolean
plainIconboolean
refLegacyRef<HTMLButtonElement>
sizeButtonSize
solidIconboolean
variantVariant

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"

Source

libs/design-system-core/src/components/Button/types.ts:25