Skip to content
Components55 / 118

Liquid Segmented

A segmented control in Apple-style liquid glass. The track is clear, light glass with a hairline rim that glints where it faces the light, the glints sliding as your cursor moves. The chosen option sits under a lens: frosted at rest, it lifts off the track the moment you touch it, swelling past the edges with an elastic give, turning clear and magnifying the labels beneath it, squeezing and bending them at its curved rim with a slight colour fringe. Tap another option and it lifts, glides across with a soft bounce and sinks back as it lands; drag it and it follows your finger. A proper radio group, driven by arrows, Home and End.

Apple-style liquid glassLens over the labelsDrag the thumbRadio groupGSAPReduced-motion safe
Drag the thumb acrossPress an option

Tweak

LIVE

Options

Glass

64px
#ffffff
#ffffff
#ffffff
#8e8e93

Light

1.00
1.00

Props

13 props
  • options{ value: string; label: string }[]
    The choices.default Inbox, Draft
  • valuestring
    Controlled value.
  • defaultValuestring
    Initial value when uncontrolled.
  • onValueChange(value: string) => void
    Called with the chosen value.
  • sizenumber
    Height of the control, px.default 64
  • tintstring
    Colour of the glass track.default "#ffffff"
  • thumbstring
    Colour of the lens's frosted glass at rest.default "#ffffff"
  • activeColorstring
    Colour of the chosen label (under the thumb).default "#ffffff"
  • labelColorstring
    Colour of the other labels.default "#8e8e93"
  • shinenumber
    Strength of the rim light.default 1
  • magnifynumber
    How strongly the lifted lens magnifies the labels under it.default 1
  • aria-labelstring
    Accessible name of the group.default "Choose a view"
  • classNamestring
    Extra classes on the control.