Displaying Color Filters and Binding Dynamic Styles

Learn about the additional colors property that we can add to our query string to filter the returned images.

We can filter the images from Pixabay by adding a color option. Pixabay uses a set of 14 colors, which we can add when requesting images. For example, adding the “blue” filter may return images containing a blue sky or a blue car.

We will approach this in two stages:

  1. Loop over the available colors and display them to the user to select.

  2. Add the selected colors to the request to filter the images.

Get hands-on with 1200+ tech skills courses.