Navigation and layout

Expand

ExpandStateIcon

Switches between collapsed and expanded content.

States

2 total

Expand

The content is collapsed.

Expand

"collapsed"

The content is collapsed.

Collapse

"expanded"

The content is expanded.

Implementation

Pass your current state.

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.

Source
Lucide
License
ISC
States
collapsed · expanded
example.tsx
import { ExpandStateIcon } from "@stateglyph/react";
<ExpandStateIcon state="collapsed" decorative />