Skip to main content

3rd party assets usage

How to replace iconscout API with our endpoint?

import { setAPI } from 'polotno/config';

// replace URL to get list of iconscout icons (used in elements side panel)
// you may need to have your own backend for that
setAPI('iconscoutList', ({ query, page = 1 }) => {
return `${query}&page=${page}`;

// replace URL to download selected icons from iconscout API.
setAPI('iconscoutDownload', (id) => {
return `${id}`;