UNPKG

@coveord/plasma-mantine

Version:

A Plasma flavoured Mantine theme

29 lines 1.18 kB
import { TooltipProps } from '@mantine/core'; import { ReactNode } from 'react'; export interface ButtonWithDisabledTooltipProps { /** * The tooltip message to display when disabled */ disabledTooltip?: string; /** * Whether the button underneath the tooltip is disabled */ disabled?: boolean; children?: ReactNode; /** * Additional tooltip props to set on the disabled button tooltip */ disabledTooltipProps?: Omit<TooltipProps, 'disabled' | 'label' | 'children'>; /** * Sets button width to 100% of parent element */ fullWidth?: boolean; } export declare const ButtonWithDisabledTooltip: (<C = "div">(props: import("@mantine/utils").PolymorphicComponentProps<C, ButtonWithDisabledTooltipProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(ButtonWithDisabledTooltipProps & { component?: any; } & Omit<Pick<any, string | number | symbol>, keyof ButtonWithDisabledTooltipProps | "component"> & { ref?: any; }) | (ButtonWithDisabledTooltipProps & { component: React.ElementType<any>; })>, never> & Record<string, never>; //# sourceMappingURL=ButtonWithDisabledTooltip.d.ts.map