Close sidebar
"open"The sidebar is open.
Navigation and layout
SidebarStateIconSwitches between open and closed sidebar layouts.
The sidebar is open.
"open"The sidebar is open.
"closed"The sidebar is closed.
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 { SidebarStateIcon } from "@stateglyph/react";
<SidebarStateIcon state="open" decorative />