tailwind-merge Utility function to efficiently mergeTailwind CSSclasses in JS without style conflicts. import{twMerge}from'tailwind-merge'twMerge('px-2 py-1 bg-red hover:bg-dark-red','p-3 bg-[#B91C1C]')// → 'hover:bg-dark-red p-3 bg-[#B91C1C]'...
tailwind-merge overrides conflicting classes and keeps everything else untouched. In the case of the implementation ofConfirmEmailComponent, the input now only renders the classesborder rounded p-5. tailwind_mergeis built to be intuitive. It follows a set of rules to determine which class wins wh...
tailwind-merge Utility function to efficiently mergeTailwind CSSclasses in JS without style conflicts. import{ twMerge }from'tailwind-merge'twMerge('px-2 py-1 bg-red hover:bg-dark-red','p-3 bg-[#B91C1C]')// → 'hover:bg-dark-red p-3 bg-[#B91C1C]' ...
tailwind-merge Utility function to efficiently mergeTailwind CSSclasses in JS without style conflicts. import{twMerge}from'tailwind-merge'twMerge('px-2 py-1 bg-red hover:bg-dark-red','p-3 bg-[#B91C1C]')// → 'hover:bg-dark-red p-3 bg-[#B91C1C]' ...
npm install super-tailwind-merge //or yarn add super-tailwind-merge Usage ES6 Import importsuperTwMergefrom'super-tailwind-merge';constexample1=superTwMerge('text-red-500',{'font-bold':true},'bg-blue-200');console.log(example1);// Outputs: 'text-red-500 font-bold bg-blue-200'constexamp...
Created with Sketch.484 Tailwind Merge PHP Merge TailwindCSS Classes in PHP Visit Site Taylor Otwell's opinions on PHP, React, Laravel and Lamborghini Memes➡️ Listen to episode Related Projects #Eloquent#Utility Created with Sketch.1.141 ...
"./dist/tailwind-merge.mjs", "default": "./dist/tailwind-merge.mjs" }, "module": "dist/tailwind-merge.mjs", "main": "dist/index.js", "types": "./dist/index.d.ts", "repository": { "type": "git", "url": "https://github.com/dcastil/tailwind-merge.git" }, "sideEffects":...
But it isn't always possible to figure out the type by looking at the arbitrary value. E.g. in the classtext-[theme(myCustomScale.rebecca)]tailwind-merge can't know the type of the arbitrary value and will default to a text-color class. To make tailwind-merge understand the correct ty...
Atailwind-mergeplugin for thetailwind-extended-shadowspackage, enabling its custom shadow classes to properly merge with the built-in Tailwind shadow classes. Install npm i tailwind-extended-shadows-merge Configure import{extendTailwindMerge}from"tailwind-merge";import{withExtendedShadows}from"tailwind-exte...
2.1.0-v1•Public• Publisheda year ago tailwind-merge Get started Dependents (1) @vertisanpro/flowbite-react Install npm i@vertisanpro/tailwind-merge Repository github.com/VertisanPRO/tailwind-merge Fundthis package Weekly Downloads