UNPKG

@nayan-ui/react

Version:

Reusable Component Library for ReactJS.

10 lines 563 B
import React, { HTMLAttributes, ReactNode } from 'react'; import { THEMES } from './Types'; export type ThemeType = keyof typeof THEMES | (typeof THEMES)[keyof typeof THEMES] | null; export interface NThemeProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> { theme?: ThemeType; children: ReactNode; onThemeChange?: (theme: string) => void; } export declare const NTheme: React.MemoExoticComponent<({ children, theme, onThemeChange, ...mainProps }: NThemeProps) => import("react/jsx-runtime").JSX.Element>; //# sourceMappingURL=NTheme.d.ts.map