Skip to content

Does IDOM support CSS modules? #478

Answered by rmorshea
Archmonger asked this question in Question
Discussion options

You must be logged in to vote

You can add style to elements in two ways:

  1. with a style tag element
  2. using the style prop (as in React)
# style element (write a CSS string)
html.style(".some-css {...}")

# define style the same as React with a camelCased dict
html.div({"style": {"backgroundColor": "red"})

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@jgburford
Comment options

@rmorshea
Comment options

@rmorshea
Comment options

@rmorshea
Comment options

@jgburford
Comment options

Answer selected by Archmonger
Comment options

Archmonger
Apr 7, 2022
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants