Comments (12)
Thanks @anupamsomani1! You are using v6.3.2
, but those icons are available in 7.0.7
. Updating should help!
from carbon-icons.
Hi @anupamsomani1! carbon-icons
that you are using? These should show up in v7 of the icons
from carbon-icons.
"carbon-addons-cloud": "^2.1.0",
"carbon-addons-cloud-react": "1.3.0",
"carbon-components": "9.7.1",
"carbon-components-react": "6.20.0",
"carbon-icons": "^6.3.2",
from carbon-icons.
Yeah I tried that but still when I am using below code that Image was not rendering
<DetailPageHeader title="Detail Page Header">
<Icon name="watson" />
</DetailPageHeader>
from carbon-icons.
Hi
from carbon-icons.
Hi @asudoh That was strange in codesandbox It's working but when I am trying to integrate in our solution then the issue will comes up.
So here my question is there is any need to import carbon-icons
?
I think 'carbon-components-react'
has duty to import carbon-icons
is my understanding correct ?
from carbon-icons.
@anupamsomani1 carbon-icons
is listed as a peerDependency
on the project
from carbon-icons.
Then how npm install work.. Its not going to download auto peerDependency packages
from carbon-icons.
Hi again npm i -S carbon-icons
would be something youβd want - Hope it helps!
from carbon-icons.
I am able to get all carbon-icons and when I am writing the way : import { iconAddSolid } from 'carbon-icons';
It was working so this is right way to do ?
from carbon-icons.
In case this is what you are asking; <Icon>
as of today has two ways to use - One is <Icon icon={iconSomething}>
where iconSomething
is a named import of carbon-icons
(as you brought up). Another is <Icon name="addβsolidβ>
but itβs deprecated.
You can see the demo of all options in http://react.carbondesignsystem.com/?selectedKind=Icon&selectedStory=Default by going to Knobs tab at the bottom and changing some props there. The source code of that demo can be found at https://github.com/IBM/carbon-components-react/blob/eb8a297/src/components/Icon/Icon-story.js. Hope it helps!
from carbon-icons.
Going to close this as this seems more like a usage question at this point. Feel free to reach out in the #carbon-react slack channel if you have additional questions around how the <Icon>
component works!
from carbon-icons.
Related Issues (20)
- pictogram request - Process Digitalization HOT 3
- Some icons are missing from the Iconography page on Carbon Design System website HOT 7
- Contribution: Tablet HOT 1
- Contribution: Mobile HOT 10
- Request: SDK icon HOT 11
- Contribution: Legend HOT 4
- iconRenew not exported HOT 1
- Contribution: City Icon Hamburg HOT 4
- IDL Library missing filter icon 16px HOT 1
- IBM Planning Analytics Pictogram Approval HOT 3
- Request: playbook icon HOT 1
- iconFolderAdd is missing, same as iconFolder HOT 1
- Contribution: ibm cloud VPS locations
- Create add-on package for animated icons HOT 1
- Unable to find AnalyticsReference icon in version 7 HOT 1
- github
- Contribution - Status icon
- Delete icon missing under nodemodules HOT 1
- New icon request for mobile, multi channel and social ads HOT 4
- Create migration docs and deprecate package HOT 2
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 carbon-icons.