UNPKG

@nex-ui/react

Version:

🎉 A beautiful, modern, and reliable React component library.

20 lines (17 loc) • 580 B
import { ReactNode } from 'react'; import { ColorSchemeProviderProps, CssFn } 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; } type NexContextValue = { css: CssFn; prefix: string; primaryThemeColor: PrimaryThemeColor; components?: Theme['components']; }; export type { NexContextValue, NexUIProviderProps };