Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
VVineet
Last edited Feb 16, 2024
Created on Feb 16, 2024
Forked from HTML Starter

This example demonstrates fundamental SVG shapes on a blank 960-by-500 canvas, including circles, rectangles, lines, and a path. The code uses plain SVG elements with React, setting attributes such as `cx`, `cy`, `r`, `fill`, `stroke`, and `stroke-width` directly in JSX. It shows how to style shapes with colors and outlines, including a dashed path connecting coordinates. No external libraries beyond React are used, and the rendering relies entirely on SVG's native vector graphics.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes