@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
31 lines • 1.13 kB
TypeScript
import { BoxProps, Factory, MantineSize, polymorphicFactory, StylesApiProps } from '@mantine/core';
export type StatusTokenFactory = Factory<{
props: StatusTokenProps;
defaultRef: HTMLDivElement;
defaultComponent: 'div';
stylesNames: StatusTokenComponentStylesNames;
vars: StatusTokenCssVariables;
variant: StatusTokenVariant;
}>;
export type StatusTokenComponentStylesNames = 'root';
export type StatusTokenVariant = 'info' | 'success' | 'caution' | 'error' | 'disabled' | 'waiting' | 'edited' | 'new';
export type StatusTokenSize = Extract<MantineSize, 'sm' | 'lg'>;
export type StatusTokenCssVariables = {
root: '--status-token-color' | '--status-token-size';
};
export interface StatusTokenProps extends BoxProps, StylesApiProps<StatusTokenFactory> {
/**
* The size of the token.
*
* @default 'lg'
*/
size?: StatusTokenSize;
/**
* The variant of the token.
*
* @default 'info'
*/
variant?: StatusTokenVariant;
}
export declare const StatusToken: ReturnType<typeof polymorphicFactory<StatusTokenFactory>>;
//# sourceMappingURL=StatusToken.d.ts.map