Magoo Component UI logo Magoo Component UI
← Catalog

Network Switcher

network-switcher molecule experimental

A chain-select dropdown - a trigger showing the active network and a menu of chains with a check on the current one.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
Open

Props

NameTypeReq
current string ✓
networks array ✓
start_open boolean

Related components

How to use

Open/closed state is the data-open attribute on the root, revealed purely by the group-data-[open=true] utilities - no JavaScript is needed for the reveal (so it renders open in screenshots when start_open is set). behavior.js wires interaction: the trigger toggles the menu, choosing a chain moves the check, updates the trigger label, fires network:switch with { network } and closes, and Escape or an outside click closes.

Use cases

actionmenu WCAG AA SEO 20 dir: both ai-generated