Giter Site home page Giter Site logo

Comments (8)

razbakov avatar razbakov commented on May 21, 2024 4

I added in my main.js:

import Framework7Icons from 'framework7-icons/css/framework7-icons.css'

And than it works.
I think it makes sense to add it to README

from framework7-icons.

peterel avatar peterel commented on May 21, 2024

Alright, seems this is solved. For any future people with same issue. One needs to use the exact name of the icon so:

<i class="f7-icons">Home</i> does not work
<i class="f7-icons">home</i> works

Also, I created a new folder called it icons and moved all icons from the src folder there.

Closing this ticket

from framework7-icons.

martinturner avatar martinturner commented on May 21, 2024

I've ran into a similar problem, so ive got the css pointing to the fonts folder,
but where should i put the icons? inside the fonts folder too?

from framework7-icons.

peterel avatar peterel commented on May 21, 2024

@martinturner I made a /libraries/framework7/ folder and placed everything there (fonts folder, icon folder as well as the .css files. Hope it helps.

from framework7-icons.

razbakov avatar razbakov commented on May 21, 2024

And how can I use it with Vue with import instruction?

from framework7-icons.

jjljyn avatar jjljyn commented on May 21, 2024

@razbakov is your issue fixed?I tried to import the file framework7-icons.js but it seems nothing happend.

from framework7-icons.

jjljyn avatar jjljyn commented on May 21, 2024

@razbakov
Thx dude 👍

from framework7-icons.

appsparkler avatar appsparkler commented on May 21, 2024

Adding to @razbakov answer; here are all the commands

STEP 1 : INSTALL framework7-icons node module:

npm i --save framework7-icons

STEP 2: IMPORT the css (in the entry file - index.js or main.js) :

import "framework7/css/framework7.min.css";

Good Luck...

from framework7-icons.

Related Issues (20)

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.