GoScrobble/web/node_modules/react-bootstrap/esm/ThemeProvider.d.ts

20 lines
739 B
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
import PropTypes from 'prop-types';
import React from 'react';
export interface ThemeProviderProps {
prefixes: Record<string, unknown>;
}
declare const Consumer: React.Consumer<{}>;
declare function ThemeProvider({ prefixes, children }: {
prefixes: any;
children: any;
}): JSX.Element;
declare namespace ThemeProvider {
var propTypes: {
prefixes: PropTypes.Validator<object>;
};
}
export declare function useBootstrapPrefix(prefix: string | undefined, defaultPrefix: string): string;
declare function createBootstrapComponent(Component: any, opts: any): React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
export { createBootstrapComponent, Consumer as ThemeConsumer };
export default ThemeProvider;