1.0.3 • Published 4 years ago
strapi-plugin-heroicons v1.0.3
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-heroiconsYarn
yarn add strapi-plugin-heroiconsAdd 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) |