Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added value prop to StepMarker component prop #598

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

biw
Copy link

@biw biw commented Apr 25, 2024

Summary:

Hello, thanks for the work on the library, it's great! I added a value prop to the recently added StepMarker prop. This allows developers to render StepMarker conditionally based on their value. This is a small change with a low service area but enables developers to implement features present in other slider libraries (sometimes called marks)

My other solution, which would be larger, was making the StepNumber component something that could be passed in. Happy to update my PR in that direction if that would be helpful!

Test Plan:

This is a small change, doesn't change any external APIs, and passes all npm tests. I have tested it in a web and native app but thought I'd put together a PR to share the changes upstream. Let me know how I can be more helpful on this front!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant