UNPKG

@coveord/plasma-mantine

Version:

A Plasma flavoured Mantine theme

50 lines 2.19 kB
import { CompoundStylesApiProps, MenuItemProps, PolymorphicFactory } from '@mantine/core'; import { ReactNode } from 'react'; import { ButtonProps } from '../../button'; export type TableActionItemStylesNames = 'actionItemRoot'; export interface TableActionItemProps extends Omit<ButtonProps, 'classNames' | 'styles' | 'vars' | 'variant' | 'leftSection' | 'rightSection'>, Omit<MenuItemProps, 'classNames' | 'styles' | 'vars' | 'variant' | 'leftSection' | 'disabled'>, CompoundStylesApiProps<TableActionItemFactory> { /** * Action label */ children: ReactNode; /** * Content to put on the left of the label */ leftSection?: ReactNode; } type TableActionItemFactory = PolymorphicFactory<{ props: TableActionItemProps; defaultRef: HTMLButtonElement; defaultComponent: 'button'; stylesNames: TableActionItemStylesNames; compound: true; }>; export declare const TableActionItem: (<C = "button">(props: import("@mantine/core").PolymorphicComponentProps<C, TableActionItemProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(TableActionItemProps & { component?: any; } & Omit<Omit<any, "ref">, "component" | keyof TableActionItemProps> & { ref?: any; renderRoot?: (props: any) => any; }) | (TableActionItemProps & { component: React.ElementType; renderRoot?: (props: Record<string, any>) => any; })>, never> & import("@mantine/core/lib/core/factory/factory").ThemeExtend<{ props: TableActionItemProps; defaultRef: HTMLButtonElement; defaultComponent: "button"; stylesNames: TableActionItemStylesNames; compound: true; }> & import("@mantine/core/lib/core/factory/factory").ComponentClasses<{ props: TableActionItemProps; defaultRef: HTMLButtonElement; defaultComponent: "button"; stylesNames: TableActionItemStylesNames; compound: true; }> & import("@mantine/core/lib/core/factory/polymorphic-factory").PolymorphicComponentWithProps<{ props: TableActionItemProps; defaultRef: HTMLButtonElement; defaultComponent: "button"; stylesNames: TableActionItemStylesNames; compound: true; }>; export {}; //# sourceMappingURL=TableActionItem.d.ts.map