Skip to content

Commit dfc1f6e

Browse files
docs: edit the description of wheelMode in README.md (#70)
1 parent 464ed0e commit dfc1f6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function MyPicker() {
101101

102102
## Support wheel scrolling
103103

104-
React Mobile Picker is designed to be used on mobile devices, but it can also support wheel scrolling on desktop browsers. To enable this feature, you can set the `wheel` prop to either `'natural'` or `'normal'`.
104+
React Mobile Picker is designed to be used on mobile devices, but it can also support wheel scrolling on desktop browsers. To enable this feature, you can set the `wheelMode` prop to either `'natural'` or `'normal'`.
105105

106106
```jsx
107107
import { useState } from 'react'
@@ -114,7 +114,7 @@ function MyPicker() {
114114
})
115115

116116
return (
117-
<Picker value={pickerValue} onChange={setPickerValue} wheel="natural">
117+
<Picker value={pickerValue} onChange={setPickerValue} wheelMode="natural">
118118
{/* ... */}
119119
</Picker>
120120
)
@@ -133,7 +133,7 @@ the main Picker container component.
133133
| onChange | N/A | `(value: T, key: string) => void`<br />Callback function when the selected value changes |
134134
| height | 216 | `number`<br />Height of the picker in `px` |
135135
| itemHeight | 36 | `number`<br />Height of each item (that is each option) in `px` |
136-
| wheel | `'off'` | `'off' \| 'natural' \| 'normal'`<br />Enable wheel scrolling on desktop browsers |
136+
| wheelMode | `'off'` | `'off' \| 'natural' \| 'normal'`<br />Enable wheel scrolling on desktop browsers |
137137

138138
### Picker.Column
139139

0 commit comments

Comments
 (0)