@formant/ava-react
Version:
React components of AVA.
18 lines (17 loc) • 675 B
TypeScript
import React from "react";
export declare const GlobalStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
type Theme = "dark" | "light" | "system";
type ThemeProviderProps = {
children: React.ReactNode;
defaultTheme?: Theme;
storageKey?: string;
};
type ThemeProviderState = {
theme: Theme;
setTheme: (theme: Theme) => void;
};
export declare const darkTheme: {};
export declare const lightTheme: {};
export declare function CustomThemeProvider({ children, defaultTheme, storageKey, ...props }: ThemeProviderProps): React.JSX.Element;
export declare const useTheme: () => ThemeProviderState;
export {};