Open menu
"closed"The menu is closed.
Navigation and layout
MenuStateIconSwitches between closed and open navigation menus.
The menu is closed.
"closed"The menu is closed.
"open"The menu is open.
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 { MenuStateIcon } from "@stateglyph/react";
<MenuStateIcon state="closed" decorative />