# Glass Modal

Glass Modal 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

Centered dialog with deep glass blur, scale-spring entrance, and staggered content reveal.

- Category: Cards & Modals
- Built with: Motion, Tailwind CSS
- License: MIT
- Page: https://aicanvas.me/components/glass-modal

## Install

```bash
npx shadcn@latest add @aicanvas/glass-modal
```

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-modal.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import GlassModal from '@/components/aicanvas/glass-modal'

<GlassModal />
```

It takes no props.

## About

Glass Modal is a centered dialog with deep glass blur on the backdrop, a scale-spring entrance for the panel, and a staggered content reveal so the header, body, and actions land in sequence rather than as one block. Motion handles the entrance choreography; the glass surface uses backdrop-filter so the dialog sits convincingly over any background. It is the default modal for SaaS settings, marketing-site confirmations, and any dashboard flow where the interruption needs to feel intentional.

Use cases: Dashboard, Settings, Marketing site.

## Source

Install with the command above to get the source.

## Remix prompt

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

## Related

- [Glass Card](https://aicanvas.me/components/glass-card.md): Glassmorphism content cards with 3D tilt-on-hover, spring physics, and a cursor-following glare highlight.
- [Radial Cards](https://aicanvas.me/components/radial-cards.md): Seven health-metric cards bloom into a slowly rotating flower. Tap any petal to pull it forward and read your stats up close.
- [AI Job Cards](https://aicanvas.me/components/ai-job-cards.md): Three AI job card stacks with swipe-to-cycle. Brand logos, bookmark toggle, springs.
- [Glass Search Bar](https://aicanvas.me/components/glass-search-bar.md): Glassmorphism search bar with animated suggestion dropdown, active state glow, and reduced-motion support.
- [Glass Progress](https://aicanvas.me/components/glass-progress.md): Glassmorphism progress bar panel with glowing gradient fills, spring-animated counters, staggered reveal, and replay button.
