v0.14.134 - 35.9 / 32.8

style:__

There are a variety of ways to set CSS Styles. To remove a style set it to null or undefined

# List

On where "red" could be changed for a reactive value

style:color="red"
style="color:red"
style={{ color: 'red' }}
style="color:var(--color)" var:color="red"
style:my-ns={{ color: "red" }}

# Note

  • When passing an object with the style properties as keys, it wont handle the removal of styles not present in the object. To remove a style set the value to falsy

# CSS Styles

Test most? of the ways