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

can we indicate selected rating? #18

Closed
aliwaqar981 opened this issue Feb 17, 2024 · 6 comments
Closed

can we indicate selected rating? #18

aliwaqar981 opened this issue Feb 17, 2024 · 6 comments

Comments

@aliwaqar981
Copy link

Purpose
Needs to indicate when user selects a rating. E.g user selected 3 rating but haven't found any way out to show this to user.

@kolking
Copy link
Owner

kolking commented Feb 17, 2024

Just use the onChange callback to get the selected value. The callback fired when user selects a rating.

@aliwaqar981
Copy link
Author

Yeah I'm doing this but is it possible to style selected value differently?

@kolking
Copy link
Owner

kolking commented Feb 18, 2024

I'm afraid I don't quite understood what you want to style. Can you provide an example of your desired behaviour?

@aliwaqar981
Copy link
Author

Screenshot_20240218_161656
@kolking If you see in the above screenshot only selected option (which is Just right in screenshot) is popped-up. Other two options are bit dull.

@aliwaqar981
Copy link
Author

@kolking let me know if you still need clarity?

@kolking
Copy link
Owner

kolking commented Feb 19, 2024

I see, you want the selected option opaque while other two are semitransparent. Unfortunately, this is not possible. I think your case is quite custom, so it's better to create your own component.

@kolking kolking closed this as completed May 26, 2024
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

No branches or pull requests

2 participants