zillow / react-slider

Accessible, CSS agnostic, slider component for React.
https://zillow.github.io/react-slider
MIT License
883 stars 231 forks source link

"renderMark" is not rendering, Can anyone tell what is the issue with the below code? #317

Open stealth-sg opened 1 month ago

stealth-sg commented 1 month ago

renderMark={(props) => { if (props.key === 0) { return ( <span {...props} className="example-mark"> {firstLabelText} ) } else if (props.key === noUnits) { return ( <span {...props} className="example-mark"> {lastLabelText} ) } return ( <span {...props} className="example-mark"> | ) }} .example-mark { font-family: 'Figtree-Regular'; font-size: 14px; background: #000; width: 2px; height: 15px; }

.example-mark:first-child { left: 0; }

.example-mark:last-child { right: 0; }