🎉Paper UI v2.0 is here!
See what's new

PUSlider Component

A hand-drawn style slider component with smooth interactions and multiple customization options

Usage

Basic Usage

Value: 50

With Labels

0100
Value: 30

With Markers

0
25
50
75
100
Value: 50

Disabled State

Value: 75 (Disabled)

Vertical Orientation

Value: 60

Props

PropTypeRequiredDefaultDescription
modelValuenumberNo0Current slider value
minnumberNo0Minimum value
maxnumberNo100Maximum value
stepnumberNo1Step increment
orientationhorizontal | verticalNohorizontalSlider orientation
showMarkersbooleanNofalseShow step markers
showLabelsbooleanNofalseShow min/max labels
disabledbooleanNofalseDisable the slider
customClassstringNo''Custom CSS classes

Events

EventPayloadDescription
update:modelValuenumberEmitted when value changes
changenumberEmitted when dragging ends

Features

  • Hand-drawn style track and thumb with organic shadows
  • Smooth drag interactions with mouse and touch support
  • Click-to-position functionality on track
  • Optional step markers and labels
  • Vertical and horizontal orientations
  • Disabled state support
  • Dark mode support
  • Responsive design with mobile touch support

Dependencies

  • Tailwind CSS for styling
  • Vue 3 Composition API