Skip to content
slider
AutoXXS (320px)XS (375px)SM (640px)MD (768px)LG (1024px)XL (1280px)XXL (1536px)
SketchMaterialiOSTamagui
DataInjectionKeyPatternsServiceTransactionProcessResearchProductQualityPerformanceSpecDomainFunctionTechnologyArchitectureConfigMiddlewareDataDatabaseDrizzleMigrationModelop-sqliteSchemaSQLState ManagementDraftKeystoneMergePatchPatchesPersistenceReactiveRedoStoreUndoTestingDeviceFactoryIsolationTypeScriptZodTopicsCommunicationBidsNVCDesignDesign ImplicationsEducationPedagogyFoundationsPsychologyAttachmentFloodingRelatingAuthentic RelatingUIEditorReact Native

slider

Fragment reference slider
tags
ui

Ranges allow the user to select a value within a range.

Usage

slider(label="Volume" min=0 max=100 value=50)

Features

Enable range mode or show additional UI elements.

slider(label="Range" range min=0 max=100 min-value=20 max-value=80)
slider(label="Markers" with-markers min=0 max=10 value=5)

Tooltips

Use with-tooltip to show the current value.

slider(label="Quality" with-tooltip min=0 max=100 value=50)

Attributes

NameTypeDefaultDescription
labelstring-Accessible label.
minnumber0Minimum value.
maxnumber100Maximum value.
valuenumber-Current value.
rangebooleanfalseEnables dual-thumb range selection.
min-valuenumber0Minimum value for range mode.
max-valuenumber50Maximum value for range mode.
with-tooltipbooleanfalseShows a value tooltip.
with-markersbooleanfalseShows step markers.
sizesmall | medium | largemediumComponent size.
disabledbooleanfalsePrevents interaction.