Strapi Plugin Heroicons
A Strapi plugin to add a custom icon field that returns Hero Icons as URI-encoded SVGs. :
Instructions
Install the Plugin
NPM
npm i strapi-plugin-heroicons
Yarn
yarn add strapi-plugin-heroicons
Add a Custom Field to Your Strapi Model
Key | Value | Details |
---|---|---|
type | heroicon | Required |
columnType | longtext | Required |
Attention!
Adding a custom field to your model will disrupt the content type builder GUI. In order to use the GUI again, simply remove the model and add it again.
Data Response (JSON String):
Key | Type | Details |
---|---|---|
svg | String | URI-Encoded |
name | String | HeroIcon Name |
style | Object | camelCased React Style |
type | string | (Outline/Solid) |