Renders a trapezoid shape with support for animation. A trapezoid is a four-sided polygon with two parallel sides of different lengths. This component is commonly used in funnel charts.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/recharts/recharts/llms.txt
Use this file to discover all available pages before exploring further.
Props
Positioning
The x-coordinate of top left point of the trapezoid in pixels.
The y-coordinate of top left point of the trapezoid in pixels.
Size
Width of the upper horizontal side of the trapezoid in pixels.
Width of the lower horizontal side of the trapezoid in pixels.
Height of the trapezoid in pixels.
Appearance
CSS class name to apply to the trapezoid element.
Animation
If set to true, trapezoid will update and render with a gradual fade-in animation from left to right.
Delay in milliseconds before animation begins.
Duration of animation in milliseconds.
Easing function for the animation.
SVG properties
This component accepts all standard SVG path element properties including:fill- Fill colorstroke- Stroke colorstrokeWidth- Stroke widthopacity- Opacity valuestyle- Inline styles
Events
Event handler for click events on the trapezoid.
Event handler for mousedown events on the trapezoid.
Event handler for mouseup events on the trapezoid.
Event handler for mousemove events on the trapezoid.
Event handler for mouseover events on the trapezoid.
Event handler for mouseout events on the trapezoid.
Event handler for mouseenter events on the trapezoid.
Event handler for mouseleave events on the trapezoid.