跳转到主要内容

json

title: Importing Iconify Icon Set
types:
  SVG: '../svg/index.md'
  IconSet: '../icon-set/index.md'
  IconifyJSON: '/docs/types/iconify-json.md'

Importing Iconify icon set

This tutorial is part of import functions documentation in Iconify Tools.

There is no special function for importing an icon set because it is redundant. All you have to do is read content from file, parse JSON data and create new [type]IconSet instance.

Example

src: libraries/tools/import/json-min.ts
title: 'example.ts'