What you will learn

Using a web API

We create two versions of an icon component that gets its SVG icon from a database on Airtable using their API.

Basic version

First, we make a basic version that merely displays the SVG.

Custom color option

And then a version that lets you change the color of the SVG with some CSS trickery.

Selecting a custom color with the component’s property controls.