Skip to main content
100%

Shapes with SVG and CSS

✓ Published3🌍 Public
KKurt J Nilsen
Last edited Aug 1, 2020
Created on Aug 1, 2020
Forked from HTML Starter

This example demonstrates how SVG shapes such as circles, rectangles, lines, and paths can be styled and transformed directly in a React application. It shows basic shape rendering with fills, strokes, and stroke widths, along with grouping and translation transforms to reposition elements. The code uses plain SVG elements inside an HTML page, with CSS classes like `.lines` applying stroke styling to grouped elements. Rendering is handled entirely by the browser’s native SVG support, with React managing the structure.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes