Gooey Morphing Chat Help Widget
Tapping the corner button stretches it into an input bar, pinches a send button off one end and lets a drop rise into a help panel. Shapes merge in one SDF smooth-min shader shared as SkSL by WebGL and React Native Skia.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "gooey-morphing-chat-help-widget" to this project. The full source is attached at the end of this prompt. Put the files under components/gooey-morphing-chat-help-widget/, 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
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 26 Oct 2026
- License
- Unlimited commercial projects
- Original design
- @saltjsx on X
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 help launcher in the bottom-right corner of a page. A round black button stretches into a wide input bar, and a separate round send button splits off from its end once text is typed, then melts back when the field is cleared. A history button, a compose button and an expand button sit around the bar. With the field focused and empty, a small Tab hint shows. Typing a character opens a panel: a ball rises out of the bar, falls into a rounded rectangle and fills with content. Closing the panel shrinks it back to a ball that drops into the bar, and clearing the field collapses the bar to the round button. A scripted demo replays the whole sequence, and interactive mode lets you type and send.
How it's built
The black shapes are one SkSL fragment shader drawn through a Skia Shader. Circles and rounded rectangles merge with a quadratic smooth-minimum of their distance fields, so the neck between them comes from one parameter and stays sharp at any resolution. A plain JavaScript core turns a log of events and a time value into geometry for each frame, and the component drives it from a requestAnimationFrame loop, with text, icons and the chat content in ordinary Views and react-native-svg. Motion mixes underdamped and critically damped springs with a few ease curves. Content inside the panel fades by opacity only, with no blur.
Good for
- A support or AI assistant launcher that grows out of a corner button
- An input that splits off a send action once there is something to send
- Any pair of shapes that should visibly merge and separate instead of crossing over
Dependencies
@shopify/react-native-skiareact-native-svgreact-native