UNPKG

515 BTypeScriptView Raw
1import React, { ReactNode, CSSProperties, SVGProps } from 'react';
2interface SurfaceProps {
3 width: number;
4 height: number;
5 viewBox?: {
6 x?: number;
7 y?: number;
8 width?: number;
9 height?: number;
10 };
11 className?: string;
12 style?: CSSProperties;
13 children?: ReactNode;
14 title?: string;
15 desc?: string;
16}
17export type Props = Omit<SVGProps<SVGSVGElement>, 'viewBox'> & SurfaceProps;
18export declare function Surface(props: Props): React.JSX.Element;
19export {};