UNPKG

react-pdf-builder

Version:
12 lines (11 loc) 858 B
import { RectProps } from '@react-pdf/renderer'; import React from 'react'; import { ShapeProps } from './ShapeProps'; export interface RectangleShapeProps extends ShapeProps { /** Optional. Props for the underlying SVG [Rect](https://react-pdf.org/svg#rect). Specify a stroke here, such as `{ stroke: 'darkblue', strokeWidth: 10 }`. */ rectProps?: Partial<RectProps>; } /** * Read the [full documentation for RectangleShape](https://justinmahar.github.io/react-pdf-builder/?path=/docs/documentation-components-shapes-rectangleshape--docs) */ export declare const RectangleShape: ({ width, height, fill, rectProps, linearGradientProps, radialGradientProps, gradient, gradientType, linearGradientCoords: linearGradientCoordsProps, radialGradientCoords: radialGradientCoordsProps, className, ...svgProps }: RectangleShapeProps) => React.JSX.Element;