UNPKG

@cloakui/utils

Version:

Shared utilities for all CloakUI component packages.

8 lines (7 loc) 440 B
/** * Given a string of classNames (separated by spaces), and an array of class prefixes, * this will return the classNames excluding any that start with any of the provided prefixes. * * @example excludeClassesStartingWith("is-style-fill is-style-secondary text-root bg-root", ["is-style-", "bg-"]); // returns "text-root" */ export declare const excludeClassNamesStartingWith: (classes: string, excludePrefixes: string[]) => string;