UNPKG

@tidy-ui/code

Version:

The Code component elegantly displays preformatted text, such as JavaScript code, on your webpage while maintaining its original format. With a convenient copy-to-clipboard button and seamless theming, sharing and styling code has never been smoother.

19 lines (18 loc) 1.25 kB
/// <reference types="react" /> import { ICodeProps } from './types'; declare const CopyIcon: import("styled-components").StyledComponent<(props: import("react").HTMLAttributes<SVGElement>) => JSX.Element, import("@tidy-ui/commons").ITidyUITheme, ICodeProps, never>; declare const CopySuccessIcon: import("styled-components").StyledComponent<(props: import("packages/types/dist/src").IIconProps) => JSX.Element, import("@tidy-ui/commons").ITidyUITheme, ICodeProps, never>; declare const CodeRoot: import("styled-components").StyledComponent<"div", import("@tidy-ui/commons").ITidyUITheme, ICodeProps, never>; declare const Content: import("styled-components").StyledComponent<"pre", import("@tidy-ui/commons").ITidyUITheme, ICodeProps, never>; /** * Tooltip props */ interface IToolTipProps { /** * If `true`, set the tool tip visible */ visible: boolean; } declare const ToolTip: import("styled-components").StyledComponent<"div", import("@tidy-ui/commons").ITidyUITheme, ICodeProps & IToolTipProps, never>; declare const CopyError: import("styled-components").StyledComponent<"div", import("@tidy-ui/commons").ITidyUITheme, {}, never>; export { CodeRoot, Content, CopyError, CopyIcon, CopySuccessIcon, ToolTip };