Skip to content

Commit

Permalink
display multiple labels
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Jun 7, 2022
1 parent b6155de commit a96b4cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/data/joy/components/slider/EdgeLabelSlider.js
Expand Up @@ -10,8 +10,9 @@ export default function EdgeLabelSlider() {
return (
<Box sx={{ width: 300 }}>
<Slider
defaultValue={[0, 10]}
max={10}
aria-label="Always visible"
getAriaLabel={() => 'Amount'}
getAriaValueText={valueText}
marks
valueLabelDisplay="on"
Expand Down
3 changes: 2 additions & 1 deletion docs/data/joy/components/slider/EdgeLabelSlider.tsx
Expand Up @@ -10,8 +10,9 @@ export default function EdgeLabelSlider() {
return (
<Box sx={{ width: 300 }}>
<Slider
defaultValue={[0, 10]}
max={10}
aria-label="Always visible"
getAriaLabel={() => 'Amount'}
getAriaValueText={valueText}
marks
valueLabelDisplay="on"
Expand Down

0 comments on commit a96b4cf

Please sign in to comment.