Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
AAmol Kulkarni
Last edited Jun 19, 2020
Created on Jun 19, 2020
Forked from HTML Cars Report

This example demonstrates basic SVG shapes styled with CSS and inline attributes, rendered in a React application. It shows circles, rectangles, lines, and a path, with fill colors, stroke widths, and a grouped transform applied via scale and translate. The SVG markup uses React’s JSX syntax, and styles are defined in an external stylesheet targeting the `.lines` class. The code directly uses SVG elements like `<circle>`, `<rect>`, `<line>`, and `<path>`, with CSS properties such as `stroke-linejoin` and `stroke-width` controlling appearance.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes