1.0.3 • Published 2 years ago

strapi-plugin-heroicons v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Strapi Plugin Heroicons

A Strapi plugin to add a custom icon field that returns Hero Icons as URI-encoded SVGs. :enter image description here

Instructions

Install the Plugin

NPM

npm i strapi-plugin-heroicons

Yarn

yarn add strapi-plugin-heroicons

Add a Custom Field to Your Strapi Model

KeyValueDetails
typeheroiconRequired
columnTypelongtextRequired

Add custom field to strapi model

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):

KeyTypeDetails
svgStringURI-Encoded
nameStringHeroIcon Name
styleObjectcamelCased React Style
typestring(Outline/Solid)

Sample Code:

enter image description here View Codesandbox