@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
32 lines (31 loc) • 1.56 kB
TypeScript
import React from 'react';
import { BoxComponentProps, PolymorphicFactory, StylesApiProps } from '../../core';
export type UnstyledButtonStylesNames = 'root';
export interface UnstyledButtonProps extends Omit<BoxComponentProps, 'vars' | 'variant'>, StylesApiProps<UnstyledButtonFactory> {
__staticSelector?: string;
}
export type UnstyledButtonFactory = PolymorphicFactory<{
props: UnstyledButtonProps;
stylesNames: UnstyledButtonStylesNames;
defaultComponent: 'button';
defaultRef: HTMLButtonElement;
}>;
export declare const UnstyledButton: (<C = "button">(props: import("../../core/factory/create-polymorphic-component").PolymorphicComponentProps<C, UnstyledButtonProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & Omit<React.FunctionComponent<(UnstyledButtonProps & {
component?: any;
} & Omit<Omit<any, "ref">, "component" | keyof UnstyledButtonProps> & {
ref?: any;
renderRoot?: ((props: any) => any) | undefined;
}) | (UnstyledButtonProps & {
component: React.ElementType<any>;
renderRoot?: ((props: Record<string, any>) => any) | undefined;
})>, never> & import("../../core/factory/factory").ThemeExtend<{
props: UnstyledButtonProps;
stylesNames: UnstyledButtonStylesNames;
defaultComponent: 'button';
defaultRef: HTMLButtonElement;
}> & import("../../core/factory/factory").ComponentClasses<{
props: UnstyledButtonProps;
stylesNames: UnstyledButtonStylesNames;
defaultComponent: 'button';
defaultRef: HTMLButtonElement;
}> & Record<string, never>;