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 f27e898
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/data/joy/components/slider/EdgeLabelSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ export default function EdgeLabelSlider() {
return (
<Box sx={{ width: 300 }}>
<Slider
track={false}
defaultValue={[0, 10]}
max={10}
aria-label="Always visible"
getAriaLabel={() => 'Amount'}
getAriaValueText={valueText}
marks
valueLabelDisplay="on"
Expand Down
4 changes: 3 additions & 1 deletion docs/data/joy/components/slider/EdgeLabelSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ export default function EdgeLabelSlider() {
return (
<Box sx={{ width: 300 }}>
<Slider
track={false}
defaultValue={[0, 10]}
max={10}
aria-label="Always visible"
getAriaLabel={() => 'Amount'}
getAriaValueText={valueText}
marks
valueLabelDisplay="on"
Expand Down

0 comments on commit f27e898

Please sign in to comment.