From f6135f5e15bf3a46df9b03199f6a062e29a731a8 Mon Sep 17 00:00:00 2001 From: OvidijusParsiunas Date: Thu, 21 Jan 2021 22:27:37 +0000 Subject: [PATCH] docs: updating guidance for conditional class application --- src/guide/class-and-style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/class-and-style.md b/src/guide/class-and-style.md index 0febb18f0f..e1fec4bcf7 100644 --- a/src/guide/class-and-style.md +++ b/src/guide/class-and-style.md @@ -111,7 +111,7 @@ If you would like to also toggle a class in the list conditionally, you can do i
``` -This will always apply `errorClass`, but will only apply `activeClass` when `isActive` is truthy. +This will always apply `errorClass`, but `activeClass` will only be applied when `isActive` is truthy. However, this can be a bit verbose if you have multiple conditional classes. That's why it's also possible to use the object syntax inside array syntax: