UNPKG

@metamask/design-system-react

Version:
19 lines 767 B
import type { ButtonVariant } from "../../types/index.cjs"; import type { ButtonPrimaryProps } from "./variants/ButtonPrimary/index.cjs"; import type { ButtonSecondaryProps } from "./variants/ButtonSecondary/index.cjs"; import type { ButtonTertiaryProps } from "./variants/ButtonTertiary/index.cjs"; export type ButtonProps = { /** * Optional prop to control the variant of the Button * * @default ButtonVariant.Primary */ variant?: ButtonVariant; } & ((Omit<ButtonPrimaryProps, 'ref'> & { variant?: ButtonVariant.Primary; }) | (Omit<ButtonSecondaryProps, 'ref'> & { variant?: ButtonVariant.Secondary; }) | (Omit<ButtonTertiaryProps, 'ref'> & { variant?: ButtonVariant.Tertiary; })); //# sourceMappingURL=Button.types.d.cts.map