Styling HTML elements #383
Unanswered
jkjustjoshing
asked this question in
Q&A
Replies: 1 comment 13 replies
-
Hey! If you have HTML elements like It would be nice if you could give me winder context of what exactly you need and how you want to use these class names. |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a React Native project where our only build output targets the web and
react-native-web
. We don't ship any native apps at the moment. We're trying to decide if we want to adopt Unistyles.We have a few web-only components where we're styling HTML elements using the
className
prop, i.e.<div>
,<p>
. How does it work to add class names to these elements with Unistyles? Is the class name exposed at runtime to the component in thestyles
object? Is there a mechanism for this?Beta Was this translation helpful? Give feedback.
All reactions