strapi-plugin-heroicons

1.0.3 • Public • Published

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

Key Value Details
type heroicon Required
columnType longtext Required

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

Key Type Details
svg String URI-Encoded
name String HeroIcon Name
style Object camelCased React Style
type string (Outline/Solid)

Sample Code:

enter image description here View Codesandbox

Readme

Keywords

none

Package Sidebar

Install

npm i strapi-plugin-heroicons

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

17.3 kB

Total Files

42

Last publish

Collaborators

  • nextrapi