Selection tool
"select"Selection tool.
Editing tools
ToolStateIconRepresents editing tool across select, draw, erase states.
Selection tool.
"select"Selection tool.
"draw"Drawing tool.
"erase"Eraser tool.
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 { ToolStateIcon } from "@stateglyph/react";
<ToolStateIcon state="select" decorative />