Skip to content

SVG framework function: listIcons

This tutorial is part of Iconify SVG Framework functions tutorial.

The function listIcons() lists loaded icons.


The function has the following optional parameters:

  • provider, string. Lists only icons from one API provider.
  • prefix, string. Lists only icons with specific prefix. If prefix is set, provider must be set too (for Iconify public API provider value is empty string "").

The function returns an array of icon names.


js// List all icons

Another example:

js// List all loaded Material Design Icons
console.log(Iconify.listIcons('', 'mdi'));
// ["mdi:alert", "mdi:home", "mdi:account-box-outline", "mdi:eyedropper", "mdi:account-off", "mdi:account", "mdi:account-box", "mdi:account-cash"]

Released under the Apache 2.0 License.