svg-shape-selector

Display a clickable SVG with customizable states (React)

Usage no npm install needed!

<script type="module">
  import svgShapeSelector from 'https://cdn.skypack.dev/svg-shape-selector';
</script>

README

SVG Shape Selector

Display a clickable SVG with customizable states (React)

Screenshot

Example

inside the example directory run npm install and then npm start.

Open http://localhost:1234 to view it in the browser.

Available Scripts

In the project directory, you can run:

npm run publish:npm

Builds the files to be packaged to the dist directory.

npm publish

Publish the new version to npm