The range slider allows users to select a numeric value within a defined range. It integrates natively with Angular Forms (ngModel and formControlName).
Use color to change the accent color. Default range is 0–100.
Default (Primary)
Value: 50
Success
Value: 75
Danger
Value: 30
Use min, max, and step to control the range.
Price range: $0 – $10,000 (step 100)
Value: $5000
Use [showValue]="true" to display the current value and [showMinMax]="true" to show min/max labels.
With value display
With min/max and value
Set [disabled]="true" to prevent interaction.
Run the following command to add this component to your project:
npx base-ui-cli add range-slider
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Base UI MCP server.
npx -y base-ui-mcp
Base UI provides standalone components. Import the exact elements you want to use into your component.
// Install: npx base-ui-cli add range-slider
// Paths are relative to aliases.components (default: src/app/components)
import { RangeSliderComponent } from './range-slider/range-slider.component';
@Component({
selector: 'app-your-component',
imports: [
RangeSliderComponent
],
template: `...`
})
export class YourComponent {} API for range-slider — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
base-range-slider | min | number | 0 | — |
base-range-slider | max | number | 100 | — |
base-range-slider | step | number | 1 | — |
base-range-slider | color | SliderColor | 'primary' | — |
base-range-slider | disabled | boolean | false | Whether the control is disabled (consumer-facing input). |
base-range-slider | showValue | boolean | false | — |
base-range-slider | showMinMax | boolean | false | — |
base-range-slider | ariaLabel | unknown | 'Slider' | — |
Content