Skip to content

Is it possible to style the progress bar indicator using the data-value attribute? #1946

Answered by joaom00
paulwongx asked this question in Help
Discussion options

You must be logged in to vote

To use data attributes on CSS you can use attr() function, but support for properties other than content is experimental.

What you can do is create a CSS variable on Root part and use it on Indicator part

https://codesandbox.io/p/sandbox/empty-voice-mct6bj?file=%2FApp.jsx

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@paulwongx
Comment options

@joaom00
Comment options

@paulwongx
Comment options

Answer selected by paulwongx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants