UNPKG

@uidu/docs

Version:

Utilities for building documentation

32 lines (31 loc) 900 B
import React, { ComponentType } from 'react'; declare type Props = { Component: ComponentType<any>; language: string; source: string; title?: string; packageName?: string; overflowHidden?: boolean; fullWidth?: boolean; style?: any; }; declare type State = { isSourceVisible: boolean; isHover: boolean; }; export declare const Toggle: import("styled-components").StyledComponent<"div", any, {}, never>; export declare const ToggleTitle: import("styled-components").StyledComponent<"h5", any, {}, never>; export default class Example extends React.Component<Props, State> { static defaultProps: { language: string; }; state: { isSourceVisible: boolean; isHover: boolean; }; toggleElement: any; toggleSource: () => void; onError: (error: Error, info: any) => void; render(): React.JSX.Element; } export {};