carbon-react
Version:
A library of reusable React components for easily building user interfaces.
11 lines (10 loc) • 569 B
TypeScript
import React from "react";
import type { ThemeObject } from "../../style/themes";
import { NewValidationContextProps } from "./__internal__/new-validation.context";
export interface CarbonProviderProps extends NewValidationContextProps {
children: React.ReactNode;
/** Theme which specifies styles to apply to all child components. Set to `sageTheme` by default. */
theme?: Partial<ThemeObject>;
}
export declare const CarbonProvider: ({ children, theme, validationRedesignOptIn, }: CarbonProviderProps) => React.JSX.Element;
export default CarbonProvider;