🌍 Public
Viewing a saved revision (read-only)
dbba2faf3b1b40eead3358136a66e805
Shapes with SVG and CSS
This example demonstrates how basic SVG shapes can be styled and grouped using CSS and SVG attributes. It shows circles, rectangles, a line, and a path rendered on an SVG canvas, with fills and strokes applied directly or inherited from a `<g>` group. The code uses React to render the SVG elements, with styles defined in an external CSS file, and showcases SVG transforms for positioning shapes without repeated coordinates.
AI-generated descriptionReact Starter code.