From e36f1ab09d04fbf1a6c09b62871f9512db29f7e4 Mon Sep 17 00:00:00 2001 From: Sandro Gehri Date: Wed, 18 Oct 2023 10:32:44 +0200 Subject: [PATCH] Doc: add hint for "withoutTwMergeClasses" --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8bd1200..0a0c92e 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ Now you can use your Blade components and pass additional classes to merge: ``` -This will now render the following HTML: +This will render the following HTML: ```html
@@ -142,7 +142,7 @@ By default Laravel allows you to only merge classes in one place. But with `Tail ```blade // button.blade.php - +``` + +> Note: Use `withoutTwMergeClasses()` on your main attributes bag, otherwise all `class:xyz` attributes will be rendered in the output. + ### Use Laravel Blade Directive The package registers a Blade directive which can be used to merge classes in your Blade views: