Expand
"collapsed"The content is collapsed.
Navigation and layout
ExpandStateIconSwitches between collapsed and expanded content.
The content is collapsed.
"collapsed"The content is collapsed.
"expanded"The content is expanded.
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 { ExpandStateIcon } from "@stateglyph/react";
<ExpandStateIcon state="collapsed" decorative />