@metamask/design-system-react
Version:
Design system react ui components
19 lines • 767 B
text/typescript
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