From 882e6623295a1ec6e8096c18b919cf05099f65ba Mon Sep 17 00:00:00 2001 From: Aatish Bhatia Date: Sat, 28 Dec 2024 14:48:48 -0600 Subject: [PATCH] replace lame with uncool --- documentation/docs/03-template-syntax/18-class.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/documentation/docs/03-template-syntax/18-class.md b/documentation/docs/03-template-syntax/18-class.md index 880a34e9ec53..3ce431c6802b 100644 --- a/documentation/docs/03-template-syntax/18-class.md +++ b/documentation/docs/03-template-syntax/18-class.md @@ -27,8 +27,8 @@ If the value is an object, the truthy keys are added: -
...
+ `class="uncool"` otherwise --> +
...
``` If the value is an array, the truthy values are combined: @@ -77,14 +77,14 @@ Prior to Svelte 5.16, the `class:` directive was the most convenient way to set ```svelte -
...
-
...
+
...
+
...
``` As with other directives, we can use a shorthand when the name of the class coincides with the value: ```svelte -
...
+
...
``` > [!NOTE] Unless you're using an older version of Svelte, consider avoiding `class:`, since the attribute is more powerful and composable.