Use CSS in custom component
<div className={`my-component ${props.classes}`}
style={ {...style, '--color':props.color} }>
</div>.my-component {
background-color: var(--color)
}Last updated
<div className={`my-component ${props.classes}`}
style={ {...style, '--color':props.color} }>
</div>.my-component {
background-color: var(--color)
}Last updated