# Glass Slider

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

Range sliders with glass tracks, glowing colored fills, and spring-animated thumbs that scale on drag.

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

## Install

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

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

```tsx
import GlassSlider from '@/components/aicanvas/glass-slider'

<GlassSlider />
```

It takes no props.

## About

Glass Slider is a range input with a frosted-glass track, a glowing colored fill that follows the value, and a thumb that scales up with Motion spring physics while you drag. The glass surface uses backdrop-filter so the track stays consistent with the page behind it. It is the right primitive for any setting that takes a continuous value: brightness, volume, opacity, model temperature, gradient stops, or any creative-tool parameter.

Use cases: Settings, Editor, Dashboard.

## Source

Install with the command above to get the source.

## Remix prompt

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

## 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 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 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 Progress](https://aicanvas.me/components/glass-progress.md): Glassmorphism progress bar panel with glowing gradient fills, spring-animated counters, staggered reveal, and replay button.
- [Glass Tab Bar](https://aicanvas.me/components/glass-tab-bar.md): Frosted glass pill tab bar with a sliding active indicator. Edge tabs snap flush to the container wall.
