UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

18 lines (17 loc) 851 B
import React from 'react'; import { MantineTheme, MantineThemeOverride } from '../theme.types'; export declare const MantineThemeContext: React.Context<MantineTheme | null>; export declare const useSafeMantineTheme: () => MantineTheme; export declare function useMantineTheme(): MantineTheme; export interface MantineThemeProviderProps { /** Determines whether theme should be inherited from parent MantineProvider, `true` by default */ inherit?: boolean; /** Theme override object */ theme?: MantineThemeOverride; /** Your application or part of the application that requires different theme */ children: React.ReactNode; } export declare function MantineThemeProvider({ theme, children, inherit, }: MantineThemeProviderProps): React.JSX.Element; export declare namespace MantineThemeProvider { var displayName: string; }