v0.16.163 - 33.1 / 23

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