Draft
"draft"The content is still a draft.
Async workflows
PublishStateIconShows content moving from draft to published.
The content is still a draft.
"draft"The content is still a draft.
"publishing"animatedPublication is in progress.
"published"The content is published.
"error"The content could not be published.
Implementation
The component stays presentational. Your application remains in control of async work and business logic. The state prop is a TypeScript string literal union — pass an invalid state and you'll get a type error at build time.
import { PublishStateIcon } from "@stateglyph/react";
<PublishStateIcon state="draft" decorative />