-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Slider] Change Slider.Output
to Slider.Value
and add format
prop
#990
Conversation
Netlify deploy preview |
f04ddaa
to
2f57fe2
Compare
80f8ce2
to
af34261
Compare
af34261
to
8357e0c
Compare
cae92e2
to
72dba3a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Demos: | ||
* | ||
* * [Slider](https://base-ui.com/components/react-slider/) | ||
* | ||
* API: | ||
* | ||
* * [SliderValue API](https://base-ui.com/components/react-slider/#api-reference-SliderValue) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be here, it's using the old format.
72dba3a
to
625312d
Compare
@@ -1,6 +1,9 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vladmoroz The *.Value
components also support children as a function (with some props) for formatting: https://github.com/mui/base-ui/blob/master/docs/data/components/select/select.mdx?plain=1#L179-L183
Should we add them to docs/reference/overrides
to show them in the props table as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add them to docs/reference/overrides to show them in the props table as well?
Yes please!
e826a63
to
dfa2411
Compare
dfa2411
to
a452999
Compare
Part of #961
Slider.Value
matches the rendering API ofSelect.Value
format
matchesNumberField
and does not take an array for range sliders, as it would makearia-valuetext
for range sliders inconsistent (comment)I have followed (at least) the PR section of the contributing guide.