Skip to content

What is the post-status icon handle when using @wordpress/icons? #43630

Answered by ghost
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

So after a little digging and being maybe a little bit oblivious 😅. The correct way to use dashicons within WordPress is as follows;

import { Dashicon } from "@wordpress/components";

<Dashicon icon="post-status" />

Note: This info can be found in the Developer Resources: Dashicons docs, but annoyingly it is buried at the bottom of the page. There are no links to this info at the top of the page, so I didn't even know it existed. 🙃

Anyways, here's a direct link to the instructions on how to use Dashicons from @wordpress/components You'll find the specifics under Block Usage.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
0 participants