Comments (5)
You're right, it's an issue in this package design and it must be fixed.
We will be releasing a 1.1.X version of a package soon which uses an image's name + a shortened part of its id. Eg this Bin1
image will be available to import as @streamlinehq/streamlinehq/images/streamline-light/bin-1-n8OgWa.svg
. This means it will be a breaking change unfortunately :\
from streamlinehq-npm.
ok great thanks, I can live with that
from streamlinehq-npm.
Done: this change is implemented in version 2.0.0 https://github.com/webalys-hq/streamlinehq-npm/releases/tag/2.0.0. Please note that it introduces a couple of other breaking changes as well.
Please check it out and tell if it solves your issue.
from streamlinehq-npm.
This doesn't seem very ergonomic. Is there somewhere that lists these ids so that we can easily import icons as needed ?
from streamlinehq-npm.
It's in the app itself: go to https://app.streamlinehq.com, select a family you're interested in, then select an icon you're interested in and see the import path in the sidebar
Another option is to use an IDE which suggests you to autocomplete a path to an image:
I've updated README with these instructions https://github.com/webalys-hq/streamlinehq-npm/blob/master/README.md
On a side note, we're considering adding plugins to popular IDEs: Visual Studio Code and Webstorm, where you would be able to select an image and paste it in code visually. Another thing we're adding soon is a desktop app with drag&drop support.
from streamlinehq-npm.
Related Issues (20)
- GitLab pages error HOT 3
- 404 streamline bold package HOT 5
- I cannot import svg files from a npm package HOT 8
- Allow specifying the dynamic name of the `.env` file to read based on NODE_ENV env var HOT 10
- How to import icons with the same name from different families? HOT 2
- Allowing the environment variables to be optional HOT 3
- Part of HumanResourcesSearchTeam icon is hidden when a fill color is set HOT 2
- Deployment failed HOT 2
- Using `spin` from the old npm package
- ReactComponent is not availaible for streamline-freehand HOT 4
- Updating `STREAMLINE_FAMILIES` and installing new images HOT 4
- Typescript support?
- Handle the case when backend is not responsive when installing NPM package HOT 1
- Some icons are blank HOT 11
- Deployment pipeline failed on Streamline icon HOT 9
- Same icon on material-solid family HOT 4
- Issues installing package on NEXT js as it uses .env.local HOT 2
- Got error "You can not download streamline-micro-bold family in SVG" HOT 4
- Unable to download the icons HOT 3
- When installing from node, getting an error on the icons' download HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streamlinehq-npm.