diff --git a/src/Helpers/TailwindTrait.php b/src/Helpers/TailwindTrait.php index dcc2a80b..f6b5acdb 100644 --- a/src/Helpers/TailwindTrait.php +++ b/src/Helpers/TailwindTrait.php @@ -99,7 +99,7 @@ public static function getTwDynamicPart($part, $attributes, $manifest, ...$custo $value = Helpers::checkAttr($attributeName, $attributes, $manifest, true); if (\is_bool($value)) { - $value = \var_export($value, true); + $value = $value ? 'true' : 'false'; } if ($responsive ? empty($value['_default'] ?? '') : !$value) { @@ -180,7 +180,7 @@ public static function getTwClasses($attributes, $manifest, ...$custom) $value = Helpers::checkAttr($attributeName, $attributes, $manifest, true); if (\is_bool($value)) { - $value = \var_export($value, true); + $value = $value ? 'true' : 'false'; } if ($responsive ? empty($value['_default'] ?? '') : !$value) {