Glow Slider with Linked Segment Control
A large frosted card on a diffuse peach and violet backdrop holds a sun-to-moon glass slider with a glowing thumb and three segments. Dragging shifts the backdrop temperature from warm to cool, and thumb and segments stay in sync.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "glow-slider-with-linked-segment-control" to this project. The full source is attached at the end of this prompt. Put the files under components/glow-slider-with-linked-segment-control/, 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 ===
Details
- Platforms
- iOS, Android, Web
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 16 Nov 2026
- License
- Unlimited commercial projects
- Original design
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
A frosted glass card floating on a soft pink, peach and violet backdrop with blurred light spots in the corner. It has a spaced-out uppercase title, two lines of subtitle, a glass pill slider with a sun at the warm end and a crescent moon at the cool end, and three pill buttons labeled energize, balanced and relax. Dragging the glowing thumb moves the whole scene toward a warm or a cool tint, brightens the sun or the moon halo, and switches the selected pill by thresholds. Tapping a pill glides the thumb to its preset, and the pill shrinks slightly while pressed.
How it's built
There are no image textures and no blur filters. The backdrop and the card interior are sets of rotated generalized-Gaussian blobs, each drawn as an ellipse with a radial gradient, fitted to the reference by bounded least squares. A shared JavaScript core holds the geometry, the small state machine and a build step that outputs a display list, which react-native-svg draws, with PanResponder for the thumb. Selection weights and the preset glide use exponential approach, and the thumb rings breathe on a slow cycle.
Good for
- Smart-lighting, thermostat or sleep-schedule controls
- A mode picker that stays in sync with a continuous slider
- Frosted card layouts that need no native blur module
Dependencies
react-native-svgreact-native