Like
"unliked"The item is not liked.
Feedback and toggles
LikeStateIconSwitches between liked and unliked feedback states.
The item is not liked.
"unliked"The item is not liked.
"liked"The item is liked.
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 { LikeStateIcon } from "@stateglyph/react";
<LikeStateIcon state="unliked" decorative />