# Glass Search Bar

Glass Search Bar is a free, MIT-licensed standalone component from AI Canvas (https://aicanvas.me): it belongs to no design system and works in any React + Tailwind app. Index of every component and install setup: https://aicanvas.me/llms.txt

Glassmorphism search bar with animated suggestion dropdown, active state glow, and reduced-motion support.

- Category: Inputs & Controls
- Built with: Motion, Tailwind CSS
- License: MIT
- Page: https://aicanvas.me/components/glass-search-bar

## Install

```bash
npx shadcn@latest add @aicanvas/glass-search-bar
```

Needs a free AI Canvas account. Signed out, the command exits 0 but writes a placeholder (an `AccountRequired` notice); check for it before reporting success. Token setup: the Install section of https://aicanvas.me/llms.txt.

AI agents can also get its install command from the read-only AI Canvas MCP server (`npx -y @aicanvas/mcp`) and run it. Setup: https://aicanvas.me/mcp

Peer dependencies:

```bash
npm install framer-motion
```

## Use it

It installs to `components/aicanvas/glass-search-bar.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import GlassSearchBar from '@/components/aicanvas/glass-search-bar'

<GlassSearchBar />
```

It takes no props.

## About

Glass Search Bar is a glassmorphism search field with an animated suggestion dropdown that opens on focus, an active-state glow when typing, and a reduced-motion fallback for users who prefer less animation. Motion handles the dropdown entrance and the focus-state highlight, while the glass surface uses backdrop-filter for the blur. It works well as a global search in SaaS shells, a sticky search header on marketing sites, and a command-palette trigger inside dashboards.

Use cases: Marketing site, SaaS, Dashboard.

## Source

Install with the command above to get the source.

## Remix prompt

Only when the user wants Glass Search Bar rebuilt from scratch instead of installed: its remix prompt is in the Remix panel at https://aicanvas.me/components/glass-search-bar.

## Related

- [Glass AI Composer](https://aicanvas.me/components/glass-ai-compose.md): Glassmorphism AI chat input with image upload, web search toggle, and model switcher.
- [Glass Slider](https://aicanvas.me/components/glass-slider.md): Range sliders with glass tracks, glowing colored fills, and spring-animated thumbs that scale on drag.
- [Glass Stepper](https://aicanvas.me/components/glass-stepper.md): Glassmorphism numeric stepper with spring number flip, notification-style tinted buttons, and configurable min/max/step.
- [Glass User Menu](https://aicanvas.me/components/glass-user-menu.md): Frosted glass user avatar trigger with animated dropdown, grouped menu items, and Log Out.
- [Glass Toast](https://aicanvas.me/components/glass-toast.md): Frosted glassmorphism toast notification stack with 4 variants, auto-dismiss progress bar, and spring-animated stacking.
