tss-react
Version:
Type safe CSS-in-JS API heavily inspired by react-jss
16 lines (15 loc) • 808 B
TypeScript
import React from "react";
import type { Options as OptionsOfCreateCache } from "@emotion/cache";
import type { EmotionCache } from "@emotion/cache";
import type { ReactNode } from "react";
export declare type NextAppDirEmotionCacheProviderProps = {
/** This is the options passed to createCache() from 'import createCache from "@emotion/cache"' */
options: Omit<OptionsOfCreateCache, "insertionPoint"> & {
prepend?: boolean;
};
/** By default <CacheProvider /> from 'import { CacheProvider } from "@emotion/react"' */
CacheProvider?: React.Provider<EmotionCache>;
children: ReactNode;
};
export declare function NextAppDirEmotionCacheProvider(props: NextAppDirEmotionCacheProviderProps): import("react").ReactElement<any, any>;
export default NextAppDirEmotionCacheProvider;