@hhgtech/hhg-components
Version:
Hello Health Group common components
21 lines (20 loc) • 1.06 kB
TypeScript
import React, { ButtonHTMLAttributes } from 'react';
import { ButtonProps as MantineButtonProps } from '@mantine/core';
import type { DataTrackingType } from "../../../interfaces/types";
export type ButtonProps = {
variant?: 'primary' | 'secondary' | 'tertiary' | 'light' | 'ghost' | 'error' | 'white' | 'success';
skipHover?: boolean;
withColorHover?: boolean;
theme?: 'helloSites' | 'marryBaby';
component?: any;
gradient?: string;
} & Omit<MantineButtonProps, 'variant' | 'gradient'> & ButtonHTMLAttributes<HTMLButtonElement> & DataTrackingType;
declare const Button: React.ForwardRefExoticComponent<{
variant?: 'primary' | 'secondary' | 'tertiary' | 'light' | 'ghost' | 'error' | 'white' | 'success';
skipHover?: boolean;
withColorHover?: boolean;
theme?: 'helloSites' | 'marryBaby';
component?: any;
gradient?: string;
} & Omit<MantineButtonProps, "variant" | "gradient"> & React.ButtonHTMLAttributes<HTMLButtonElement> & DataTrackingType & React.RefAttributes<unknown>>;
export { Button };