Skip to main content

Function: findClassAttributeFragmentMatch()

function findClassAttributeFragmentMatch(
selectorContainer: Readonly<SelectorContainer>,
fragments: Iterable<string>,
__namedParameters?: ClassAttributeFragmentMatchOptions
):
| Readonly<{
attributeSelector: string;
fragment: string;
}>
| undefined;

Defined in: _internal/selector-parser-utils.ts:141

Find the first class attribute selector that matches one curated fragment.

Parametersโ€‹

selectorContainerโ€‹

Readonly<SelectorContainer>

fragmentsโ€‹

Iterable<string>

__namedParameters?โ€‹

ClassAttributeFragmentMatchOptions = {}

Returnsโ€‹

| Readonly<{ attributeSelector: string; fragment: string; }> | undefined