@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
28 lines • 1.06 kB
TypeScript
import { BoxProps, CompoundStylesApiProps, Factory } from '@mantine/core';
import { Header } from '@tanstack/react-table';
import { ComponentType, ForwardedRef, SVGProps } from 'react';
import { CustomComponentThemeExtend } from '../../../utils';
export type TableThStylesNames = 'th';
export type SortState = 'asc' | 'desc' | 'none';
export interface ThProps<T = unknown> extends BoxProps, CompoundStylesApiProps<TableThFactory> {
header: Header<T, unknown>;
sortingIcons?: Record<SortState, ComponentType<SVGProps<SVGSVGElement>>>;
}
export type TableThFactory = Factory<{
props: ThProps;
ref: HTMLTableCellElement;
stylesNames: TableThStylesNames;
compound: true;
}>;
export declare const Th: {
<T>(props: ThProps<T> & {
ref?: ForwardedRef<HTMLTableCellElement>;
}): import("react/jsx-runtime").JSX.Element;
extend: CustomComponentThemeExtend<{
props: ThProps;
ref: HTMLTableCellElement;
stylesNames: TableThStylesNames;
compound: true;
}>;
};
//# sourceMappingURL=Th.d.ts.map