Sets style values for the selected component. Only the properties you include in values are updated. Every other property keeps its current value.
| Name | Type | Description |
|---|---|---|
values.cssProperties | object | CSS properties to update, keyed by property name. |
values.cssCustomProperties | object | CSS custom properties to update, keyed by property name. |
Promise<void>
You can also pass the property name as a string literal instead of using the CssPropertyType enum:
Last updated: 8 September 2026