For the complete documentation index, see llms.txt. This page is also available as Markdown.

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. /

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. /

Signature

addPrefixToTailwindClasses(classString, prefix)

Parameters

Parameter
Description

classString

-

prefix

-

Usage

const transformHook = (rw) => {
    const classes = addPrefixToTailwindClasses();
};

Last updated

Was this helpful?