Now In Code
Get access

Collapsible Glass Bottom Search Bar

A frosted glass bottom bar morphs into a small Search here pill when the page scrolls down and expands again on scroll up or tap. Focusing the field lifts it above the keyboard and grows a round clear button from its right end. Uses expo-blur.

Inspired by a design by @_Kavsoft on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "collapsible-glass-bottom-search-bar" to this project.

The full source is attached at the end of this prompt. Put the files under components/collapsible-glass-bottom-search-bar/, 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
28 Sep 2026
License
Unlimited commercial projects
Original design
@_Kavsoft on X

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 browser-style bottom bar on a dark page of cards. When expanded it is a glass panel with a search field above a row of five icons. Scrolling down shrinks the whole panel into a small pill reading Search here, with the toolbar scaling down and blurring out while the field fades. Scrolling up, returning to the top or tapping the pill expands it again. Tapping the search field raises the keyboard, the field rides just above it, the toolbar disappears and a close button grows out of the right end of the field. After typing and collapsing, the pill shows the typed text, truncated at a maximum width. A preview uses a stand-in keyboard, while the native component uses the system one.

How it's built

Collapse progress and focus progress are two scalar values driving every layer: the glass rectangle interpolates between panel and pill, the field keeps its sharpness and only changes width and height, and the toolbar is a layer centred in the glass that scales and blurs out. Both values follow critically damped springs, and when a target changes mid-flight the starting velocity is carried over. The glass is expo-blur plus a tinted overlay, icons are react-native-svg and a requestAnimationFrame loop supplies time. Scroll direction toggles collapse after a ten-point accumulated threshold.

Good for

  • Browsers, readers and maps that need a search or command bar at the bottom
  • Any toolbar that should step out of the way while scrolling content
  • Search fields that dock above the keyboard when focused

Dependencies

react-native-svgexpo-blurreact-native

Tags

ButtonDark ModeExpand and CollapseGradientIconLiquid GlassMorphingNavigation BarReading and ContentScroll-DrivenSearch BarSpring PhysicsState TransitionSystem UIText InputTravel and Transport

Related