When using e.g. Input component with the property disabled set to false, simplifyTailwindClasses will be called like this: simplifyTailwindClasses('border border-gray-300...', '...', ''). As you can see, the last string is empty. This will then lead to border CSS class being obmitted.
To reproduce, simply use the Input component without any properties (use the defaults). Then inspect the element and you will see there is no border class.
When using e.g.
Input
component with the propertydisabled
set tofalse
,simplifyTailwindClasses
will be called like this:simplifyTailwindClasses('border border-gray-300...', '...', '')
. As you can see, the last string is empty. This will then lead toborder
CSS class being obmitted.To reproduce, simply use the Input component without any properties (use the defaults). Then inspect the element and you will see there is no
border
class.