Skip to content

Commit 731f3cc

Browse files
chore: wrote slider doc
1 parent 5036ff8 commit 731f3cc

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

README.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,69 @@ export const MyScreen = () => {
857857

858858
![left side sheet](https://ik.imagekit.io/Computools/rn-material-components/left-side-sheet.gif?updatedAt=1706170982231)
859859
![right side sheet](https://ik.imagekit.io/Computools/rn-material-components/right-side-sheet.gif?updatedAt=1706171192408)
860+
</details>
861+
</details>
862+
<details><summary>Sliders</summary>
863+
</br>
864+
<details><summary>Slider</summary>
865+
</br>
866+
867+
**Properties**
868+
869+
| name | description | type | default |
870+
| ------ | ------ | ------ | ---- |
871+
| max | required | number | - |
872+
| min | required | number | - |
873+
| value | - | number | 0 |
874+
| step | The slider operates in discrete mode when a step value is provided. | number | - |
875+
| onChangeValue | - | (value: number) => void | - |
876+
| centered | The slider operates in centered mode when a centered props is true | number | boolean | false |
877+
| damping | Controls thumb animation when a track point is pressed. | number | 20 |
878+
| valueHeight | - | number | 44 |
879+
| thumbWidthActive | - | number | 2 |
880+
| thumbWidthInactive | - | number | 4 |
881+
| thumbStyle | - | ViewStyle | - |
882+
| valueStyle | - | ViewStyle | - |
883+
| indicatorStyle | - | ViewStyle | - |
884+
| trackPointStyle | - | ViewStyle | - |
885+
| trackPointsStyle | - | ViewStyle | - |
886+
| filledTrackStyle | - | ViewStyle | - |
887+
| remainingTrackStyle | - | ViewStyle | - |
888+
889+
![continuous slider](https://ik.imagekit.io/Computools/rn-material-components/continuous-slider.gif?updatedAt=1734970059184)
890+
![centered slider](https://ik.imagekit.io/Computools/rn-material-components/centered-slider.gif?updatedAt=1734970059052)
891+
![discrete slider](https://ik.imagekit.io/Computools/rn-material-components/discrete-slider.gif?updatedAt=1734970059069)
892+
893+
</details>
894+
<details><summary>Range Slider</summary>
895+
</br>
896+
897+
898+
**Properties**
899+
900+
| name | description | type | default |
901+
| ------ | ------ | ------ | ---- |
902+
| max | required | number | - |
903+
| min | required | number | - |
904+
| range | The first element represents the minimum value, and the second represents the maximum value. The range must have exactly two elements, with the minimum value less than or equal to the maximum value. | number | - |
905+
| step | The slider operates in discrete mode when a step value is provided. | number | - |
906+
| onChangeValue | - | (value: number) => void | - |
907+
| centered | The slider operates in centered mode when a centered props is true | number | boolean | false |
908+
| damping | Controls thumb animation when a track point is pressed. | number | 20 |
909+
| valueHeight | - | number | 44 |
910+
| thumbWidthActive | - | number | 2 |
911+
| thumbWidthInactive | - | number | 4 |
912+
| thumbStyle | - | ViewStyle | - |
913+
| valueStyle | - | ViewStyle | - |
914+
| indicatorStyle | - | ViewStyle | - |
915+
| trackPointStyle | - | ViewStyle | - |
916+
| trackPointsStyle | - | ViewStyle | - |
917+
| filledTrackStyle | - | ViewStyle | - |
918+
| remainingTrackStyle | - | ViewStyle | - |
919+
920+
![range slider](https://ik.imagekit.io/Computools/rn-material-components/range-slider.gif?updatedAt=1734970059452)
921+
![discrete range slider](https://ik.imagekit.io/Computools/rn-material-components/continuous-slider.gif?updatedAt=1734970059184)
922+
860923
</details>
861924
</details>
862925
<details><summary>Snackbar</summary>

0 commit comments

Comments
 (0)