How to use feather-icons - 10 common examples

To help you get started, we’ve selected a few feather-icons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wuweiweiwu / react-pretty-interaction-icon / src / react-pretty-interaction-icon.js View on Github external
componentDidMount() {
    // get all the icons rendered
    feather.replace();
  }
github unite-cms / unite-cms / src / Bundle / CoreBundle / Resources / webpack / vue / components / VariantsVariant.vue View on Github external
setTimeout(()=> {
                        feather.replace();

                        // When variant was selected, enable all disabled input elements if they are not disabled intentionally.
                        this.$el.querySelectorAll('input, textarea, select').forEach((element) => {
                            if(!element.classList.contains('disabled')) {
                                element.disabled = false;
                            }
                        });

                    }, 2);
                }
github feathericons / react-feather / bin / build.js View on Github external
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable prefer-template */
const path = require('path');
const fs = require('fs');
const format = require('prettier-eslint');
const upperCamelCase = require('uppercamelcase');
const featherIcons = require('feather-icons/dist/icons.json');

const rootDir = path.join(__dirname, '..');

const icons = Object.keys(featherIcons);

const dir = path.join(rootDir, 'src/icons');

if (!fs.existsSync(dir)) {
  fs.mkdirSync(dir);
}

const initialTypeDefinitions = `/// 
import { ComponentType, SVGAttributes } from 'react';

interface Props extends SVGAttributes {
  color?: string;
  size?: string | number;
}

type Icon = ComponentType;
github fengyuanchen / vue-feather / test / index.js View on Github external
it('feather', () => {
        const vm = new Vue({
          template: '',
        }).$mount();

        expect(vm.$el.classList.contains('feather--feather')).to.be.true;
        expect(vm.$el.querySelector('svg').innerHTML).to.equal(icons.feather.contents);
      });
    });
github tamb / domponent / examples / site / src / index.js View on Github external
import jump from "jump.js";
import { Init, Component } from "domponent/dist/domponent.development.js";
import feather from "feather-icons";

import "./fonts.scss";
import "./base.scss";
import "./includes/nav/nav";
import "./includes/tags/tags";
import "./includes/header/header";
import "./includes/btn/btn";
import "./includes/markup/markup";
import "./includes/charts/charts";
import "./includes/seo/seo";
import "./includes/api/api";

feather.replace();

class HoverBuddy extends Component {
  constructor(props) {
    super(props);
  }

  highlight(e) {
    console.log(this);
    const refName = e.target.dataset.refArray;
    if (refName) {
      this[refName].forEach(el => el.classList.add("same"));
    }
  }
  removeHighlight(e) {
    const refName = e.target.dataset.refArray;
    if (refName) {
github rpfujiw / gui-auto-uat / angular-src / src / app / components / projects / projects.component.ts View on Github external
ngOnInit() {
    feather.replace();
    this.showLoadingImage = true;
    this.projectsSevice.getAllProjects()
      .subscribe(
        (projects) => {
          this.projects = projects;
          this.showLoadingImage = false;
        },
        (error) => {
          this.showLoadingProjectsError = true;
          this.showLoadingImage = false;
        }
      )
  }
github rpfujiw / gui-auto-uat / angular-src / src / app / components / features / features.component.ts View on Github external
ngOnInit() {
    feather.replace();
    this.featuresService.getAllBySuiteId(this.navigationStateService.suiteIdSelected)
      .subscribe(
        (features) => {
          this.features = features;
          this.showLoadingImage = false;
        },
        (error) => {
          this.showLoadingFeaturesError = true;
          this.showLoadingImage = false;
        }
      );
    this.filenameCheck.pipe(debounceTime(500))
      .subscribe(
        (filename) => {
          this.featuresService.checkIfFilenameExists(this.navigationStateService.projectIdSelected, filename)
            .subscribe(
github rpfujiw / gui-auto-uat / angular-src / src / app / components / scenarios / scenarios.component.ts View on Github external
ngOnInit() {
    feather.replace();
    this.getAllScenarios();
    this.scenarioStateService.componentToOpen$
      .subscribe(
        (componentName) => {
          this.componentToOpen = componentName;
          if(componentName === 'scenarioHome'){
            this.getAllScenarios();
          }
        }
      );
  }
github unite-cms / unite-cms / src / Bundle / CoreBundle / Resources / webpack / vue / views / Table.vue View on Github external
contentActions: function(row){
            let actions = [];
            if(!this.deletedContent) {
                actions.push({ url: this.getUpdateUrl(row.id), icon: feather.icons['edit'].toSvg({ width: 24, height: 16 }), name: 'Update content' });

                if(this.hasTranslations) {
                    actions.push({ url: this.getTranslationsUrl(row.id), icon: feather.icons['globe'].toSvg({ width: 24, height: 16 }), name: 'Translate content' });
                }

                actions.push({ url: this.getRevisionsUrl(row.id), icon: feather.icons['skip-back'].toSvg({ width: 24, height: 16 }), name: 'Revisions' });
                actions.push({ url: this.getDeleteUrl(row.id), icon: feather.icons['trash-2'].toSvg({ width: 24, height: 16 }), name: 'Delete content', class: 'uk-text-danger' });
            } else {
                actions.push({ url: this.getRecoverUrl(row.id), icon: feather.icons['rotate-ccw'].toSvg({ width: 24, height: 16 }), name: 'Recover' });
                actions.push({ url: this.getDeleteDefinitelyUrl(row.id), icon: feather.icons['x-circle'].toSvg({ width: 24, height: 16 }), name: 'Delete definitely', class: 'uk-text-danger' });
            }
            return actions;
        },
        formatDate: function(date) {

feather-icons

Simply beautiful open source icons

MIT
Latest version published 8 months ago

Package Health Score

80 / 100
Full package analysis

Similar packages