You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(web): align step markers with thumb position using thumbSize prop
- Pass thumbSize prop to StepsIndicator component
- Use actual thumbSize value instead of hardcoded constant
- Add WebProps type for proper TypeScript typing
- Fix step marker alignment on web platform edges
Fixes#743
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,8 +96,9 @@ To use this library you need to ensure you are using the correct version of Reac
96
96
|`maximumTrackImage`| Assigns a maximum track image. Only static images are supported. The leftmost pixel of the image will be stretched to fill the track. | Image<br/>.propTypes<br/>.source | iOS |
97
97
|`minimumTrackImage`| Assigns a minimum track image. Only static images are supported. The rightmost pixel of the image will be stretched to fill the track. | Image<br/>.propTypes<br/>.source | iOS |
98
98
|`thumbImage`| Sets an image for the thumb. Only static images are supported. Needs to be a URI of a local or network image; base64-encoded SVG is not supported. | Image<br/>.propTypes<br/>.source ||
99
+
|`thumbSize`| Define the size of the thumb. Only for web<br/>Default value is 20px. | number | web |
99
100
|`trackImage`| Assigns a single image for the track. Only static images are supported. The center pixel of the image will be stretched to fill the track. | Image<br/>.propTypes<br/>.source | iOS |
100
-
|[`StepMarker`](#stepmarker)| Component to be rendered for each step on the track,<br/>with the possibility to change the styling, when thumb is at that given step |`FC<MarkerProps>`|iOS, Android, Windows |
101
+
|[`StepMarker`](#stepmarker)| Component to be rendered for each step on the track,<br/>with the possibility to change the styling, when thumb is at that given step |`FC<MarkerProps>`||
101
102
|[`renderStepNumber`](#renderstepnumber)| Turns on the displaying of numbers of steps.<br/>Numbers of steps are displayed under the track | bool | iOS, Android, Windows |
102
103
|`ref`| Reference object. | MutableRefObject | web |
0 commit comments