Free
Pro

Range Slider

The range slider allows users to select a numeric value within a defined range. It integrates natively with Angular Forms (ngModel and formControlName).

free

Basic Slider

Use color to change the accent color. Default range is 0–100.

Default (Primary)

Value: 50

Success

Value: 75

Danger

Value: 30


HTML

With Min, Max, Step

Use min, max, and step to control the range.

Price range: $0 – $10,000 (step 100)

Value: $5000


HTML

Show Value and Range Labels

Use [showValue]="true" to display the current value and [showMinMax]="true" to show min/max labels.

With value display

50

With min/max and value

0
10075

HTML

Disabled State

Set [disabled]="true" to prevent interaction.


HTML

Installation

Run the following command to add this component to your project:

bash

npx base-ui-cli add range-slider

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Base UI MCP server.

bash

npx -y base-ui-mcp

Base UI provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)

// 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 reference for range-slider
APIMemberTypeDefaultDescription
base-range-sliderminnumber0
base-range-slidermaxnumber100
base-range-sliderstepnumber1
base-range-slidercolorSliderColor'primary'
base-range-sliderdisabledbooleanfalseWhether the control is disabled (consumer-facing input).
base-range-slidershowValuebooleanfalse
base-range-slidershowMinMaxbooleanfalse
base-range-sliderariaLabelunknown'Slider'