bool:*
Edit this pageRemoved in Solid 2.0
The bool:* prefix has been removed in Solid 2.0. Boolean attribute behavior is now built-in: passing true adds the attribute to the element (as a valueless attribute), and passing false removes it.
Migration
In Solid 1.x, you needed bool: to control attribute presence based on a boolean value. In Solid 2.0, this is the standard behavior for boolean-valued attributes.
// Solid 1.x<my-element bool:muted={isMuted()} />
// Solid 2.0<my-element muted={isMuted()} />When isMuted() is true, the rendered output is:
<my-element muted></my-element>When isMuted() is false, the attribute is removed:
<my-element></my-element>This works for all boolean attributes on both native HTML elements and Web Components.