Passing CSS into custom widgets

Right now there is nothing in your 3-way toggle that accepts the style property. When you are configuring a custom widget all of the config options get passed to the widget as the widget props (which is why in when you configure your 3-way toggle your item config becomes props.item which you then use in the 3-way toggle expressions).

The style configuration, in this case, is no different. It will be passed to the custom widget as props.style and you have no expression in your custom widget that includes a props.style.

You can look at this widget for an example:

In your case, you have an easy solution because the root container in your 3-way toggle doesn’t have any style parameter already in use and that’s where you would want these styles to be applied anyway:

component: f7-row
config:
  style: =props.style

You don’t even have to add the style property to the parameter list at the top if you don’t want to. That only determines how the properties are displayed in the configuration wizard that pops up when you use UI configuration for the widget. But, you cannot create the style object in that manner anyway so this only works when configuration is in an editor like your current use case.