Imports
Styled component import
ts
import { TngSliderComponent } from '@tailng-ui/components';Basic usage
Controlled value
html
<tng-slider
[value]="volume()"
(valueChange)="volume.set($event)"
[min]="0"
[max]="100"
[step]="1"
aria-label="Volume"
></tng-slider>Slider variants
The wrapper keeps numeric state controlled while the surrounding shell carries labels and summaries.
Volume slider (Plain-CSS)
Volume slider (Tailwind CSS)
Volume
Utility shell with the same controlled slider contract.
Behavior baseline
- The wrapper exposes a controlled numeric model through
valueandvalueChange. min,max, andstepare forwarded to the native range input.