@remotion/shapes
Version:
Generate SVG shapes
14 lines (13 loc) • 750 B
TypeScript
import React from 'react';
import type { MakeRectOptions } from '../utils/make-rect';
import type { AllShapesProps } from './render-svg';
export type RectProps = MakeRectOptions & AllShapesProps;
/**
* @description Renders an SVG element containing a rectangle.
* @param {Number} width The width of the Rectangle
* @param {Number} height The height of the Rectangle
* @param {Number} cornerRadius Rounds the corner using an arc. Similar to CSS's border-radius. Cannot be used together with edgeRoundness.
* @param {null|Number} edgeRoundness Allows to modify the shape by rounding the edges using bezier curves. Default null.
* @see [Documentation](https://www.remotion.dev/docs/shapes/rect)
*/
export declare const Rect: React.FC<RectProps>;