UNPKG

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