Files
est-frame/node_modules/react-bootstrap/cjs/ThemeProvider.d.ts
2025-10-22 05:38:27 +00:00

27 lines
1.1 KiB
TypeScript
Executable File

import * as React from 'react';
export declare const DEFAULT_BREAKPOINTS: string[];
export declare const DEFAULT_MIN_BREAKPOINT = "xs";
export interface ThemeContextValue {
prefixes: Record<string, string>;
breakpoints: string[];
minBreakpoint?: string;
dir?: string;
}
export interface ThemeProviderProps extends Partial<ThemeContextValue> {
children: React.ReactNode;
}
declare const Consumer: React.Consumer<ThemeContextValue>;
declare function ThemeProvider({ prefixes, breakpoints, minBreakpoint, dir, children, }: ThemeProviderProps): React.JSX.Element;
declare namespace ThemeProvider {
var propTypes: any;
}
export declare function useBootstrapPrefix(prefix: string | undefined, defaultPrefix: string): string;
export declare function useBootstrapBreakpoints(): string[];
export declare function useBootstrapMinBreakpoint(): string | undefined;
export declare function useIsRTL(): boolean;
declare function createBootstrapComponent(Component: any, opts: any): React.ForwardRefExoticComponent<{
bsPrefix?: string;
} & React.RefAttributes<any>>;
export { createBootstrapComponent, Consumer as ThemeConsumer };
export default ThemeProvider;