Overview
The Shape component is a versatile UI element that allows to add premade shapes. It can be used to enhance visual design or draw attention to specific areas of the interface.
Usage
The Shape component can be used almost everywhere. For example, it can be used to create decorative elements, highlight important information, or simply add visual interest to a element. You just need to put the Shape component inside another component, such as a FAB, or any other container.
Variants
The Shape component has several variants to fit different design contexts.
API Reference
Shape Components
A collection of decorative shape components that apply clip-path styling to their parent containers.
Available Shapes
The shape library includes 37 different shapes, each as a separate component:
Geometric Shapes:
ShapeCircle- Perfect circleShapeSquare- Square with rounded cornersShapeTriangle- Triangular shapeShapeDiamond- Diamond/rhombus shapeShapeHexagon- Six-sided polygonShapePentagon- Five-sided polygonShapeOval- Elliptical shape
Decorative Shapes:
ShapeHeart- Heart shapeShapeFlower- Flower-like shapeShapeGem- Gem/crystal shapeShapeBurst- Star burst patternShapeBoom- Explosion-like shapeShapeFan- Fan or shell shapeShapeArrow- Arrow pointing shape
Cookie Shapes:
Shape4SidedCookie- Four-sided cookie cutterShape6SidedCookie- Six-sided cookie cutterShape7SidedCookie- Seven-sided cookie cutterShape9SidedCookie- Nine-sided cookie cutterShape12SidedCookie- Twelve-sided cookie cutter
Special Shapes:
ShapePixelCircle- Pixelated circleShapePixelTriangle- Pixelated triangleShapeGhostIsh- Ghost-like shapeShapePill- Pill/capsule shapeShapeArch- Arch or dome shapeShapeBun- Bun or rounded shapeShapeSlanted- Slanted/diagonal shapeShapeSemicircle- Half circleShapePuffy- Puffy cloud-like shapeShapePuffyDiamond- Puffy diamond variantShapeSoftBoom- Soft explosion shapeShapeSoftBurst- Soft burst patternShapeSunny- Sun-like shapeShapeVerySunny- Enhanced sun shapeShape4LeafClover- Four-leaf cloverShape8LeafClover- Eight-leaf clover
Props
The Shape component doesn't define any custom props beyond the standard input props.
Inherited Props
The Radio component accepts all standard HTML svg element props.
Usage Pattern
Shape components work by automatically applying a clip-path CSS property to their parent container. They render as invisible SVG elements that define the clipping region.