Feedback and toggles

Like

LikeStateIcon

Switches between liked and unliked feedback states.

States

2 total

Like

The item is not liked.

Like

"unliked"

The item is not liked.

Remove like

"liked"

The item is liked.

Implementation

Pass your current state.

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.

Source
Lucide
License
ISC
States
unliked · liked
example.tsx
import { LikeStateIcon } from "@stateglyph/react";
<LikeStateIcon state="unliked" decorative />