class
✓ RelevantTwo ways to set element classes: `class` attribute (supports strings, objects with truthy keys, arrays with truthy values, flattened nesting) and `class:` directive (conditional shorthand); prefer attribute form.
Two ways to set element classes: `class` attribute (supports strings, objects with truthy keys, arrays with truthy values, flattened nesting) and `class:` directive (conditional shorthand); prefer attribute form.