Skip to content

Commit

Permalink
Update Slider.spec.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
good-jinu committed Dec 24, 2024
1 parent 53ea427 commit 8acb178
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/mui-material/src/Slider/Slider.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,15 @@ function testOnChange() {
thumb: ({ orientation }) => ({ className: orientation === 'vertical' ? 'thumb_vertical' : '' }),
}}
/>;

// value, onChange, and onChangeCommitted value type
<Slider
value={5}
onChange={(event, value: number) => {}}
onChangeCommitted={(event, value: number) => {}}
/>;
<Slider
value={[5, 10]}
onChange={(event, value: number[]) => {}}
onChangeCommitted={(event, value: number[]) => {}}
/>;

0 comments on commit 8acb178

Please sign in to comment.