Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
attribute values in custom props? - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
2y ago
•
7 replies
curiousmissfox
attribute values in custom props?
So since we can do
content: attr(data-value)
content: attr(data-value)
, I
’m curious if there
’s a way to store the value of attributes within custom properties
? Can I do something like
—
_value
: attr
(data
-value
)
? Will it look for an attribute of
[data
-value
] on the element I use it on
?
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
CSS Custom Props Good Practice
KP-C
Kevin Powell - Community / front-end
17mo ago
Autocomplete for custom props on Sass
KP-C
Kevin Powell - Community / front-end
3y ago
Using `:first-of-type` with data attribute values?
KP-C
Kevin Powell - Community / front-end
2y ago
Can't override Open-Props custom property
KP-C
Kevin Powell - Community / front-end
2y ago