-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Samuel Andersson <[email protected]>
- Loading branch information
1 parent
7cd90f8
commit a391d57
Showing
4 changed files
with
106 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
examples/src/stories/slider/examples/range-slider-with-streps-and-marks-example.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { RangeSlider } from "@axiscommunications/fluent-slider"; | ||
import React from "react"; | ||
|
||
export function WithStepsAndMarksRangeSliderExample() { | ||
return ( | ||
<RangeSlider | ||
min={0} | ||
max={100} | ||
title="Range Slider with steps and marks" | ||
defaultValue={[50, 75]} | ||
marks={[ | ||
{ value: 50, label: "50" }, | ||
{ value: 75, label: "75" }, | ||
]} | ||
step={25} | ||
/> | ||
); | ||
} | ||
|
||
export const WithStepsAndMarksRangeSliderExampleAsString = ` | ||
import { RangeSlider } from "@axiscommunications/fluent-slider"; | ||
import React from "react"; | ||
export function WithStepsAndMarksRangeSliderExample() { | ||
return ( | ||
<RangeSlider | ||
min={0} | ||
max={100} | ||
title="Range Slider with steps and marks" | ||
defaultValue={[50, 75]} | ||
marks={[ | ||
{ value: 50, label: "50" }, | ||
{ value: 75, label: "75" }, | ||
]} | ||
step={25} | ||
/> | ||
) | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters