-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Gutenberg Icons #42817
Comments
#19809 is the PR that made I don't think there's a plan to change that, so npm may be your only option. It isn't something I've been involved in (just relaying the info here) so I won't be able to answer any questions about that, but I see @gziolo was involved in that PR and might be able to. |
I don't think the decision to keep icons internal is set in stone. We definitely wanted to keep it internal to see how the collection of icons grows. We discussed some interesting ideas on how to make them part of the public API in a way that makes them easy to use with The recommendation, for now, would be to use the import { alignCenter } from '@wordpress/icons`; |
Is there any package offering just the raw SVG contents/source of the icons? I only see JS files: https://github.com/WordPress/gutenberg/tree/38e559964e7b47366e2a7213827c9377783ba9d7/packages/icons/src/library What's the process of submitting new icons? I don't see any style guide offering: icon-grid templates, stroke/fill guidelines, etc. |
Hello,
This is a question regarding @wordpress/icons package. Are these icons available on global scope (wp variable) somewhere?
You can use the icon component like this:
Since
alignCenter
is SVG component, where can it be found?I am willing to keep my JS file as light as possible so I can access icon library from global scope instead of importing icon components from
@wordpress/icons
package.Thank you for any input.
The text was updated successfully, but these errors were encountered: