UNPKG

1.19 kBTypeScriptView Raw
1import * as React from 'react';
2export declare const DEFAULT_BREAKPOINTS: string[];
3export declare const DEFAULT_MIN_BREAKPOINT = "xs";
4export interface ThemeContextValue {
5 prefixes: Record<string, string>;
6 breakpoints: string[];
7 minBreakpoint?: string;
8 dir?: string;
9}
10export interface ThemeProviderProps extends Partial<ThemeContextValue> {
11 children: React.ReactNode;
12}
13declare const Consumer: React.Consumer<ThemeContextValue>;
14declare function ThemeProvider({ prefixes, breakpoints, minBreakpoint, dir, children, }: ThemeProviderProps): React.JSX.Element;
15declare namespace ThemeProvider {
16 var propTypes: any;
17}
18export declare function useBootstrapPrefix(prefix: string | undefined, defaultPrefix: string): string;
19export declare function useBootstrapBreakpoints(): string[];
20export declare function useBootstrapMinBreakpoint(): string | undefined;
21export declare function useIsRTL(): boolean;
22declare function createBootstrapComponent(Component: any, opts: any): React.ForwardRefExoticComponent<{
23 bsPrefix?: string | undefined;
24} & React.RefAttributes<any>>;
25export { createBootstrapComponent, Consumer as ThemeConsumer };
26export default ThemeProvider;