Add bookmark
"unbookmarked"The item is not bookmarked.
Feedback and toggles
BookmarkStateIconSwitches between bookmarked and unbookmarked states.
The item is not bookmarked.
"unbookmarked"The item is not bookmarked.
"bookmarked"The item is bookmarked.
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 { BookmarkStateIcon } from "@stateglyph/react";
<BookmarkStateIcon state="unbookmarked" decorative />