Skip to content

Conversation

@Han5991
Copy link
Contributor

@Han5991 Han5991 commented May 18, 2025

Description

This pull request introduces the domain prop to both Slider and RangeSlider components in the @mantine/core library. The domain prop allows for defining a complete range of possible values, independent of min and max, enabling more flexible and customizable value ranges.

Changes

  • Added domain prop to Slider and RangeSlider for handling custom value ranges.
  • Updated internal calculations to use the domain prop while clamping values within min and max.
  • Added a story named DomainSlider to demonstrate the domain prop usage.

Han5991 added 2 commits May 18, 2025 22:09
- Introduced `domain` prop to define the full range of possible slider values separate from `min` and `max`.
- Updated logic to use `domain` for value calculations while clamping within `min` and `max`.
- Added `DomainSlider` story to demonstrate usage of the `domain` prop.
@Han5991 Han5991 changed the base branch from master to 8.1.0-contributions May 18, 2025 13:21
@Han5991 Han5991 changed the base branch from 8.1.0-contributions to master May 18, 2025 13:21
@Han5991 Han5991 closed this May 18, 2025
@Han5991 Han5991 deleted the feature/slider-domain branch May 18, 2025 21:17
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.

1 participant