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

0

Playground

color

HTML

<ply-range-slider color="primary" [showValue]="true">Range Slider</ply-range-slider>

Basic Slider

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

Default (Primary)

Value: 50

Success

Value: 75

Danger

Value: 30

With Min, Max, Step

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

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

Value: $5000

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

Disabled State

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

Installation

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

bash

npx ply-ui-cli add range-slider

API Reference

For AI agents

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

bash

npx -y ply-ui-mcp

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

typescript (Example)

// Install: npx ply-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
ply-range-sliderminnumber0
ply-range-slidermaxnumber100
ply-range-sliderstepnumber1
ply-range-slidercolorSliderColor'primary'
ply-range-sliderdisabledbooleanfalseWhether the control is disabled (consumer-facing input).
ply-range-slidershowValuebooleanfalse
ply-range-slidershowMinMaxbooleanfalse
ply-range-sliderariaLabelunknown'Slider'