Experiments >

Delivery estimates: click to select country

Experiment #9230th March, 2021by Joshua Nussbaum

Expanding on the last experiment, I added the ability to select a country by clicking on the SVG. It fires a click event that includes the country code of the <path> that was clicked.

Code

https://svelte.dev/repl/632c8ccf36bc4efabc50ab78ee104e10?version=3.36.0

Demo

view all experiments

Stay tuned in

Learn how to add more experimentation to your workflow