Update documentation/docs/03-template-syntax/18-class.md

Co-authored-by: Conduitry <git@chor.date>
pull/14714/head
Rich Harris 6 days ago committed by GitHub
parent 9dabf4449a
commit 39687b446c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -17,7 +17,7 @@ Primitive values are treated like any other attribute:
### Objects and arrays ### Objects and arrays
Since Svelte 5.15, `class` can be an object or array, and is converted to a string using [clsx](https://github.com/lukeed/clsx/). Since Svelte 5.15, `class` can be an object or array, and is converted to a string using [clsx](https://github.com/lukeed/clsx).
If the value is an object, the truthy keys are added: If the value is an object, the truthy keys are added:

Loading…
Cancel
Save