Skip to content

Commit 7bcaf4e

Browse files
authored
Update 18-class.md
1 parent 357e1a7 commit 7bcaf4e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Svelte also exposes the `ClassValue` type, which is the type of value that the `
8585

8686
## The `class:` directive
8787

88-
Prior to Svelte 5.16, the `class:` directive was the most convenient way to set classes on elements conditionally.
88+
For simple cases, the `class:` directive offers a convenient way to set classes on elements conditionally.
8989

9090
```svelte
9191
<!-- These are equivalent -->
@@ -98,5 +98,3 @@ As with other directives, we can use a shorthand when the name of the class coin
9898
```svelte
9999
<div class:cool class:lame={!cool}>...</div>
100100
```
101-
102-
> [!NOTE] Unless you're using an older version of Svelte, consider avoiding `class:`, since the attribute is more powerful and composable.

0 commit comments

Comments
 (0)