Show as list
"grid"The collection uses a grid layout.
Navigation and layout
ViewStateIconSwitches a collection between grid and list layouts.
The collection uses a grid layout.
"grid"The collection uses a grid layout.
"list"The collection uses a list layout.
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 { ViewStateIcon } from "@stateglyph/react";
<ViewStateIcon state="grid" decorative />