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 `https://example.com/iconscout?query=${query}&page=${page}`;
});

// replace URL to download selected icons from iconscout API.
setAPI('iconscoutDownload', (id) => {
  return `https://example.com/download-iconscout?uuid=${id}`;
});

Get a personalized walkthrough of Polotno's capabilities

News, updates and promos –
subscribe now