@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
19 lines (18 loc) • 1.02 kB
TypeScript
import { CSSProperties } from 'react';
import { MantineTheme } from '../../../MantineProvider';
import { GetStylesApiOptions } from '../../styles-api.types';
export type _Styles = undefined | Partial<Record<string, CSSProperties>> | ((theme: MantineTheme, props: Record<string, any>, ctx: Record<string, any> | undefined) => Partial<Record<string, CSSProperties>>);
export interface GetStyleInput {
theme: MantineTheme;
selector: string;
rootSelector: string;
options: GetStylesApiOptions | undefined;
props: Record<string, any>;
stylesCtx: Record<string, any> | undefined;
withStylesTransform?: boolean;
resolvedStyles: Record<string, any>;
resolvedThemeStyles: Record<string, any>;
resolvedVars: Record<string, any>;
resolvedRootStyle: CSSProperties;
}
export declare function getStyle({ theme, selector, options, props, stylesCtx, rootSelector, withStylesTransform, resolvedStyles, resolvedThemeStyles, resolvedVars, resolvedRootStyle, }: GetStyleInput): CSSProperties;