You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.2 KiB
27 lines
1.2 KiB
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): 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 | undefined;
|
|
} & React.RefAttributes<any>>;
|
|
export { createBootstrapComponent, Consumer as ThemeConsumer };
|
|
export default ThemeProvider;
|