We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 201cf15 commit 25a4d34Copy full SHA for 25a4d34
content/tutorial/03-advanced-svelte/06-classes/02-class-shorthand/README.md
@@ -5,17 +5,15 @@ title: Shorthand class directive
5
Often, the name of the class will be the same as the name of the value it depends on:
6
7
```svelte
8
-/// file: App.svelte
+/// no-file
9
<div class:big={big}>
10
- <!-- ... -->
11
-</div>
12
```
13
14
In those cases we can use a shorthand form:
15
16
17
/// file: App.svelte
18
-<div class:big>
19
+<div +++class:big+++>
+ some {big ? 'big' : 'small'} text
20
</div>
21
0 commit comments