Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Nettalco/nettalco-theme/llms.txt

Use this file to discover all available pages before exploring further.

The Slider component renders a draggable range control that allows numeric value selection along a track. Nettalco Theme provides tokens for the track’s background, border radius, and thickness; the filled range segment; the handle’s outer circle, inner content circle dimensions, hover backgrounds, drop shadow, and focus ring; plus explicit light and dark color scheme values for the inner handle content.

Usage

<!-- Basic horizontal slider -->
<p-slider [(ngModel)]="value" />

<!-- Vertical slider -->
<p-slider [(ngModel)]="value" orientation="vertical" styleClass="h-48" />

<!-- Range slider -->
<p-slider [(ngModel)]="rangeValues" [range]="true" />

<!-- Step and min/max -->
<p-slider [(ngModel)]="value" [min]="0" [max]="100" [step]="10" />
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { SliderModule } from 'primeng/slider';

@Component({
  selector: 'app-example',
  standalone: true,
  imports: [SliderModule, FormsModule],
  templateUrl: './example.component.html'
})
export class ExampleComponent {
  value = 40;
  rangeValues = [20, 80];
}

Design Tokens

Root

TokenValueDescription
transitionDuration{transition.duration}Transition animation duration

Track

TokenValueDescription
track.background{content.border.color}Unfilled track background
track.borderRadius{content.border.radius}Track corner radius
track.size3pxTrack height (horizontal) / width (vertical)

Range

TokenValueDescription
range.background{primary.color}Filled (active) range color

Handle (outer circle)

TokenValueDescription
handle.width20pxHandle outer circle width
handle.height20pxHandle outer circle height
handle.borderRadius50%Circular handle
handle.background{content.border.color}Outer circle background
handle.hoverBackground{content.border.color}Outer circle background on hover
handle.focusRing.width{focus.ring.width}Focus ring width
handle.focusRing.style{focus.ring.style}Focus ring style
handle.focusRing.color{focus.ring.color}Focus ring color
handle.focusRing.offset{focus.ring.offset}Focus ring offset
handle.focusRing.shadow{focus.ring.shadow}Focus ring shadow

Handle content (inner circle)

TokenValueDescription
handle.content.borderRadius50%Circular inner handle
handle.content.width16pxInner circle width
handle.content.height16pxInner circle height
handle.content.hoverBackground{content.background}Inner circle background on hover
handle.content.shadow0px 0.5px 0px 0px rgba(0,0,0,0.08), 0px 1px 1px 0px rgba(0,0,0,0.14)Inner circle drop shadow

Handle content colors — Light

TokenValueDescription
handle.content.background{surface.0}#ffffffInner circle default background

Handle content colors — Dark

TokenValueDescription
handle.content.background{surface.950}Inner circle default background

Theme Notes

The slider handle uses a two-circle design: a larger outer circle (20px) with {content.border.color} background acts as a border ring, while a smaller inner circle (16px) carries the actual fill color. This gives the handle a subtle elevated appearance enhanced by the inner shadow.
The range fill uses {primary.color} (emerald in Nettalco). For a range slider, both the filled segment and the selected handle end will visually connect, creating a clear indication of the selected range boundaries.
The inner handle background swaps from white ({surface.0}) in light mode to near-black ({surface.950}) in dark mode, ensuring the handle remains visually distinguishable against the track in both themes.

Build docs developers (and LLMs) love