Skip to main content

Examples

Example 1

1 Very low Risk2 Low Risk3 Medium Risk4 High Risk5 Very high Risk
Code
<SliderXSelector
optionCount={5}
colors={["#79ba57", "#a9d359", "#eacd51", "#ee883d", "#e26155"]}
labels={[
"1\nVery low\nRisk",
"2\nLow\nRisk",
"3\nMedium\nRisk",
"4\nHigh\nRisk",
"5\nVery high\nRisk",
]}
className={"sliderXExample1"}
animationTime={100}
defaultOptionIndex={0}
>
</SliderXSelector>

Example 2

BudapestGyőrBratislavaBrnoPragueBerlin
Code
<SliderXSelector
optionCount={6}
colors={["#87CEEB"]}
labels={["Budapest", "Győr", "Bratislava", "Brno", "Prague", "Berlin"]}
className={"sliderXExample2"}
animationTime={250}
defaultOptionIndex={0}
options={
EnumSliderXOptions.DisableCenteredOptions |
EnumSliderXOptions.ClickableLabels
}
>
</SliderXSelector>

Example 3

Team RedTeam BlueTeam YellowTeam White
Code
    <SliderXSelector
optionCount={4}
colors={["rgb(158, 44, 32)", "rgba(2, 50, 209,1)", "#ebeb00", "#ffffff"]}
labels={["Team\nRed", "Team\nBlue", "Team\nYellow", "Team\nWhite"]}
className={"sliderXExample3"}
animationTime={100}
defaultOptionIndex={0}
options={EnumSliderXOptions.ClickableLabels}
></SliderXSelector>