diff --git a/example-web/src/Examples.tsx b/example-web/src/Examples.tsx
index 69909624..a4c27219 100644
--- a/example-web/src/Examples.tsx
+++ b/example-web/src/Examples.tsx
@@ -10,6 +10,26 @@ export interface Props {
platform?: string;
}
+const StepMarker = ({
+ stepMarked,
+ currentValue,
+ index,
+}: {
+ stepMarked: boolean;
+ currentValue: number;
+ index: number;
+}) => (
+
+)
+
const SliderExample = (props: SliderProps) => {
const [value, setValue] = useState(0);
return (
@@ -232,4 +252,17 @@ export const examples: Props[] = [
);
},
},
-];
+ {
+ title: 'Slider with StepMarker',
+ render() {
+ return (
+
+ );
+ },
+ }
+];
\ No newline at end of file
diff --git a/package/src/components/StepsIndicator.tsx b/package/src/components/StepsIndicator.tsx
index a28b12c6..2ab41937 100644
--- a/package/src/components/StepsIndicator.tsx
+++ b/package/src/components/StepsIndicator.tsx
@@ -44,6 +44,7 @@ export const StepsIndicator = ({
;
currentValue?: number;
+ index: number;
};
export const SliderTrackMark = ({
@@ -19,11 +21,16 @@ export const SliderTrackMark = ({
thumbImage,
StepMarker,
currentValue,
+ index,
}: TrackMarksProps) => {
return (
{StepMarker ? (
-
+
) : null}
{thumbImage && isTrue ? (