feat: add Slider component#5033
Open
hazrid93 wants to merge 1 commit into
Open
Conversation
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
force-pushed
the
hazrid93/4271_slider
branch
from
July 20, 2026 11:57
d27f455 to
59e49b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.