UNPKG

carbon-react

Version:

A library of reusable React components for easily building user interfaces.

23 lines (22 loc) 965 B
import React from "react"; import { MarginProps } from "styled-system"; import { TagProps } from "../../__internal__/utils/helpers/tags/tags"; export type Shapes = "text" | "rectangle" | "rectangle-round" | "circle"; export interface PreviewProps extends MarginProps, TagProps { /** Children content to render in the component. */ children?: React.ReactNode; /** Sets loading state. */ loading?: boolean; /** Sets the height of the Preview. */ height?: string; /** Sets the width of the Preview. */ width?: string; /** The number of placeholder shapes to render. */ lines?: number; /** Sets the preview's shape. */ shape?: Shapes; /** Removes Preview's animation, is true when prefer reduce-motion is on. */ disableAnimation?: boolean; } export declare const Preview: ({ children, loading, lines, height, width, shape, disableAnimation, ...props }: PreviewProps) => React.JSX.Element; export default Preview;