@meonode/ui
Version:
A structured approach to component composition, direct CSS-first prop styling, built-in theming, smart prop handling (including raw property pass-through), and dynamic children.
19 lines • 768 B
TypeScript
import { type ReactNode } from 'react';
import type { Children, Theme } from '../types/node.type.js';
export interface ThemeContextValue {
theme: Theme;
setTheme: (theme: Theme | ((theme: Theme) => Theme)) => void;
}
export declare const ThemeContext: import("react").Context<ThemeContextValue | null>;
/**
* The internal implementation of the ThemeProvider component.
* @param {object} props The props for the component.
* @param {Children} [props.children] The children to render.
* @param {Theme} props.theme The theme to provide.
* @returns {ReactNode} The rendered component.
*/
export default function ThemeProvider({ children, theme }: {
children?: Children;
theme: Theme;
}): ReactNode;
//# sourceMappingURL=theme-provider.client.d.ts.map