import React from 'react' ; import { CommonProps } from '../Group' ; import { CommonShapeProps } from './common' ; export interface RectStyle extends CommonShapeProps { description description radius ? : number | number [ ] ; description description width ? : number | 'auto' ; description description height ? : number | 'auto' ; } interface RectProps extends CommonProps { description style : RectStyle ; } const Rect = ( props ) => { const { children , ... rest } = props ; return ( < div data - attr = { { ... rest , type : 'rect' , } } > { children } < /div>); } ; export default Rect ;