Copy
"idle"Content is ready to be copied.
Feedback and toggles
CopyStateIconShows idle, copied, and reset clipboard feedback.
Content is ready to be copied.
"idle"Content is ready to be copied.
"copied"Content was copied.
"reset"Copy feedback has reset.
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 { CopyStateIcon } from "@stateglyph/react";
<CopyStateIcon state="idle" decorative />