Inputs

Latching square toggle

A compact square icon button that latches between a faint outlined off state and a solid accent-filled pressed state.

Using Latching square toggle

A compact square icon button that latches between a faint outlined off state and a solid accent-filled pressed state.

Try the live preview with a pointer and keyboard, then check focus visibility and the narrow layout in your own page. Use the plate number or slug when asking your coding agent to fetch this component.

Props: pressed, size, disabled, accentColor

Which frameworks are available?

The catalog lists these versions: react, vue, svelte, astro, html. The live preview on this page runs React.

How do I access the implementation?

The code, framework versions and installation commands are available in the workbench above.

Connect your agent

Nearby