GithubHelp home page GithubHelp logo

directus-extension-iconify's Introduction

directus-extension-iconify

This extension adds a field type to Directus that allows you to select an icon from the Iconify library.
It will save the icon name as string in the database.
You can use the field in your frontend to display the icon by using one of the Iconify components.

Installation

pnpm i directus-extension-iconify -D # with pnpm
yarn add directus-extension-iconify -D # with yarn
npm i directus-extension-iconify --save-dev # with npm

Usage

  1. Go to your directus collection and create a new field
  2. Select Iconify Dropdown as field type within the group "Selection"
  3. Add your key
  4. If you to use a custom icon library, you can add it to the whitelist in the extension settings
  5. Click "Continue in Advance Field Creation Mode"
  6. Go to the Display tab and select "Iconify Icon" as display type
  7. Save the field

Now you can use the field in your collection.

Options

Whitelist icon libraries to be used in the field: img_3.png

Preview

img.png img_1.png img_2.png

directus-extension-iconify's People

Contributors

mikenewxyz avatar renatomoor avatar

Stargazers

 avatar  avatar Gavin Luo avatar Petr Brabec avatar  avatar Glenn Layson avatar Gaston Besada avatar Sidarta Veloso avatar  avatar

Watchers

 avatar

Forkers

mikenewxyz

directus-extension-iconify's Issues

Extension does nothing

I installed the extension even with pnpm or npm and via marketplace and I can't achieve to add the iconify field.
I use directus in a docker container, the extension settings inside the directus app show the extension as installed and enabled.
Does anyone had the same issue and can offer a solution ?
Thanks for helping me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.