Enter fullscreen
"windowed"The view is windowed.
Media controls
FullscreenStateIconSwitches between windowed and fullscreen layouts.
The view is windowed.
"windowed"The view is windowed.
"fullscreen"The view is fullscreen.
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 { FullscreenStateIcon } from "@stateglyph/react";
<FullscreenStateIcon state="windowed" decorative />