Now In Code
Get access

Frosted Pill Multi-Select with Slide-to-Continue

An onboarding question shows four frosted pills in a 2x2 grid over a blue-grey background with a breathing yellow orb. Tapping a pill turns it white with a check badge; a white knob drags to continue and springs back if let go early. Blur uses gradients.

Inspired by a design posted on PinterestRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "frosted-pill-multi-select-with-slide" to this project.

The full source is attached at the end of this prompt. Put the files under components/frosted-pill-multi-select-with-slide/, install the listed dependencies with `npx expo install`, and render it on a route I can open.

Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply.

=== Source files are attached here for paid plans ===
Pro piece. The prompt includes the full source.Get access

Details

Platforms
iOS, Android
Requires
Expo SDK 54+
Access
Pro
Updated
18 Nov 2026
License
Unlimited commercial projects
Original design
Pinterest

Are you the designer? Ask us to change or remove this.

CLI and MCP server Coming soon

Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs

What it does

A health onboarding question with a three-line headline and a short instruction to select all that apply. Four numbered frosted-glass pills carry the answer options, and a soft cloud shape floats behind them, drifting a couple of points on a nine-second cycle. Tapping a pill toggles it: the pill shrinks slightly then springs back, its glass turns whiter, its border brightens and a check badge pops in at the right, and tapping again mid-transition reverses from the current point. A glowing yellow orb with a speak button idles with a slow pulse, and a slide-to-continue bar at the bottom has a white knob that fades the Next label as it moves.

How it's built

A shared core holds a state machine and builds a list of SVG shapes for the current state, which react-native-svg draws on a requestAnimationFrame loop. The frosted glass is not a real blur: since the content behind the pills is known and procedural, the same Gaussian ellipses are redrawn inside each pill's clip with a larger radius. Knob dragging uses PanResponder. Past a threshold the label fades, and releasing beyond the completion point snaps to the end and calls a continue callback with the selection, otherwise it eases back.

Good for

  • Onboarding questions where several answers can apply, such as goals or interests
  • A slide-to-confirm control at the foot of a flow
  • Frosted glass chips over a known background without a native blur view

Dependencies

react-native-svgreact-native

Tags

ButtonCheckbox and RadioChipDragGlowHealth and FitnessLiquid GlassMinimalOnboardingPress FeedbackSliderSoft and CalmState Transition

Related