@nex-ui/react
Version:
🎉 A beautiful, modern, and reliable React component library.
22 lines (19 loc) • 648 B
TypeScript
import { ReactNode } from 'react';
import { ColorSchemeProviderProps, CssFn, Layers } from '@nex-ui/system';
import { Theme } from '../../types/theme.js';
type PrimaryThemeColor = Exclude<Theme['primaryThemeColor'], undefined>;
interface NexUIProviderProps {
theme?: Theme;
colorScheme?: Omit<ColorSchemeProviderProps, 'children'>;
children?: ReactNode;
prefix?: string;
cssCascadeLayersDisabled?: boolean;
}
type NexContextValue = {
css: CssFn;
layers: Layers;
prefix: string;
primaryThemeColor: PrimaryThemeColor;
components?: Theme['components'];
};
export type { NexContextValue, NexUIProviderProps };