Liquid glass toggle: a working switch from flat 2D to glass 3D
Liquid glass UI is the glass look of 2026: controls drawn as clear, lit glass over the page. Liquid Glass Toggle is a working toggle switch component in that look, and it is what it says: its two labels, 2D and 3D, are written in big square pixels, and the knob sits under the one that is on. On 2D everything is flat, seen from straight above. Flip it to 3D and the track and the knob turn to liquid glass, a lens with a bright rim that bends what is under it at the bezel, while the pixels of 3D stand up as cubes that ripple quietly and the view turns after the pointer. On its way across, the knob clears into a glass lens and grows past the track before it settles. It stays a control, too: a real liquid glass button with the switch role, 320 px wide by default, with the same footprint on both sides, that you can click, drag or flip from the keyboard.
How it works
Pick a look
Start from Soft, Ink, Night, Lime, Blueprint or Object, then choose the side it starts on, the 3D style and a width from 120 to 720 px.
Shape the 3D and the glass
Set the tilt and turn of the 3D view, the cube height, wave and sway, then the frost, refraction, dispersion and reflectivity of the glass. Flip it in the preview as you go.
Take it with you
Sign in with a free UX Pilot account to download a PNG at 1x to 3x, a video or GIF of the flips, the live switch as an HTML page, the JSON settings or its code.
What you can make
Liquid glass UI explorations
Try the liquid glass look on a real control, with its frost, refraction and rim light, before it goes into a design system.
View switchers in mockups
Show the 2D 3D toggle of a design tool, a map or a product viewer as a control that shows the change it makes.
Launch posts and changelogs
Export a video or GIF of the switch flipping by itself for a launch post, a changelog entry or a slide.
Prototypes and demos
Open the HTML page in a prototype for a liquid glass button that clicks, drags and flips from the keyboard.
FAQ
What is a liquid glass toggle?
A toggle switch in the liquid glass style of 2026 interfaces: the track and the knob look like clear, lit glass and bend what is under them at the edge. Here the glass comes with 3D. At rest on 2D the switch is flat and plain; on 3D the whole switch turns to glass with a bright rim, refraction at the bezel and, if you want it, a split of color.
Is the liquid glass switch a real, accessible control?
Yes. Under the glass it is a real HTML button with the switch role, so it takes the focus, is announced as a switch and flips with Space or Enter, while the arrow keys put it on a side. Click or tap it to flip it, or drag the knob across and let go: it settles on the nearer side, or the side you threw it toward.
What does it look like without WebGL2 or with reduced motion?
Without WebGL2, or with Material on 3D set to Solid, it is the plain switch: the same pixels and cubes, without the glass. When the visitor's system asks for reduced motion it does not animate, and a flip puts it on the other side at once.
Is Liquid Glass Toggle free?
Exploring is free: flip it, drag it and try every look and setting. Downloading a PNG, a video or GIF of the flips, the HTML page, the JSON settings or the code needs a free UX Pilot account.