Skip to main content
100%

Shapes with SVG

✓ Published1🌍 Public
Kkierra
Last edited Jul 1, 2020
Created on Jul 1, 2020
Forked from HTML Cars Report

This example demonstrates basic SVG shapes—circles, rectangles, lines, and paths—rendered directly in a React component. It uses plain SVG elements with attributes for positioning, sizing, and styling, including stroke widths, fills, and a group transform. A second group applies a cyan fill and black stroke to selected shapes, while a path uses round line joins. The code relies on React’s JSX to embed SVG markup, with styles from an external stylesheet. No data source is used; the visualization solely shows static geometric primitives.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes