Skip to content

feat: add Slider component#5033

Open
hazrid93 wants to merge 1 commit into
callstack:mainfrom
hazrid93:hazrid93/4271_slider
Open

feat: add Slider component#5033
hazrid93 wants to merge 1 commit into
callstack:mainfrom
hazrid93:hazrid93/4271_slider

Conversation

@hazrid93

Copy link
Copy Markdown

feat: add Slider component

Addresses #4271.

Adds a Material 3 slider controlled by a value prop with min and max bounds, defaulting to 0 and 1, and clamps out of range values. The thumb position and the filled track reflect the value relative to the range.

Calls onValueChange with the new value on drag or tap, computing the value from the touch position. An optional step snaps the value to multiples of the step measured from the minimum. Exposes the adjustable accessibility role with min, max, and current value. When disabled it suppresses change callbacks and visually dims the thumb. Configurable colors for the active track, inactive track, and thumb, defaulting to the theme primary. The component is exported from the public surface.

@callstack-bot

callstack-bot commented Jul 20, 2026

Copy link
Copy Markdown

Hey @hazrid93, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

Addresses callstack#4271.

Adds a Material 3 slider controlled by a value prop with min and max bounds, defaulting to 0 and 1, and clamps out of range values. The thumb position and the filled track reflect the value relative to the range.

Calls onValueChange with the new value on drag or tap, computing the value from the touch position. An optional step snaps the value to multiples of the step measured from the minimum. Exposes the adjustable accessibility role with min, max, and current value. When disabled it suppresses change callbacks and visually dims the thumb. Configurable colors for the active track, inactive track, and thumb, defaulting to the theme primary. The component is exported from the public surface.
@hazrid93
hazrid93 force-pushed the hazrid93/4271_slider branch from d27f455 to 59e49b0 Compare July 20, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants