Skip to content

NewMCP server for your coding agent. Set it up ›

Nexus UI
Get Pro

React Toggle Switch Components

Toggle switches and dark mode toggles with a bit of physics: a knob of liquid mercury, a ball sealed in a glass capsule, a light you pull by its cord, a window shade that drops over the sky. Each one is a real on-off control you can drop into a settings page, built with Framer Motion and Tailwind CSS.

7 toggle switches: 1 free and 6 Pro.

Browse React Toggle Switch Components

All toggle switches in Nexus UI

  • Mercury Switch

    Settings toggles whose knob is a bead of mercury, shaded per pixel like a real chrome drop: a bright softbox up top, a dark horizon line, a warm floor, a fine rainbow at the rim.

  • Capsule Toggles

    Switches built as a ball sealed in a glass capsule. Flip one and the ball stretches into a pill mid-flight, then takes on the row's colour and glows as it lands.

  • Pull Cord

    A light switch on a cord: a small verlet rope you grab by its bead, pull past its slack and let go to toggle the light. The panel lights up or goes dark and the cord swings and settles; Enter or Space tugs it from the keyboard.

  • Ink Theme Switch

    A dark-mode toggle where the dark version of a settings panel pours out of the switch as a growing ink circle and drains back in when you switch off. The sun pulls in its rays and turns into a crescent moon, and only the component's own panel is themed.

  • Window Seat Toggle

    A light/dark theme switch drawn as an aeroplane window set in a piece of cabin wall. Outside it's a bright blue sky over a drifting sea of cumulus with the tip of a wing.

  • Eclipse Toggle

    A light and dark switch played as an evening going by, that can change the whole page with it. The switch is a strip of sky over low hills, and the knob is the sun.

  • Bell Toggle

    A notify-me toggle with a real brass bell in it. Press it and the bell is struck: it swings on its pivot and the clapper swings after it, ringing each time it meets the lip, a little quieter each time, with rings of sound spreading out.