UNPKG

900 BTypeScriptView Raw
1import React, { ComponentType } from 'react';
2declare type Props = {
3 Component: ComponentType<any>;
4 language: string;
5 source: string;
6 title?: string;
7 packageName?: string;
8 overflowHidden?: boolean;
9 fullWidth?: boolean;
10 style?: any;
11};
12declare type State = {
13 isSourceVisible: boolean;
14 isHover: boolean;
15};
16export declare const Toggle: import("styled-components").StyledComponent<"div", any, {}, never>;
17export declare const ToggleTitle: import("styled-components").StyledComponent<"h5", any, {}, never>;
18export default class Example extends React.Component<Props, State> {
19 static defaultProps: {
20 language: string;
21 };
22 state: {
23 isSourceVisible: boolean;
24 isHover: boolean;
25 };
26 toggleElement: any;
27 toggleSource: () => void;
28 onError: (error: Error, info: any) => void;
29 render(): React.JSX.Element;
30}
31export {};