addPrefixToTailwindClasses
Adds a prefix (like "hover:" or "group-hover:") to Tailwind classes. Handles classes that already have modifiers by inserting the prefix after the existing modifier. /
Last updated
Was this helpful?
Adds a prefix (like "hover:" or "group-hover:") to Tailwind classes. Handles classes that already have modifiers by inserting the prefix after the existing modifier. /
Adds a prefix (like "hover:" or "group-hover:") to Tailwind classes. Handles classes that already have modifiers by inserting the prefix after the existing modifier. /
addPrefixToTailwindClasses(classString, prefix)classString
-
prefix
-
const transformHook = (rw) => {
const classes = addPrefixToTailwindClasses();
};Last updated
Was this helpful?
Was this helpful?

