Skip to main content

Function: selectorHasScopeAnchor()

selectorHasScopeAnchor(selector: Readonly<ParsedSelector>, options?: SelectorScopeAnchorOptions): boolean

Defined in: _internal/selector-scope-analysis.ts:216

Check whether a selector has a meaningful scope anchor such as a component class, a stable Docusaurus wrapper, a custom id, or a non-root data attribute.

Parametersโ€‹

selectorโ€‹

Readonly<ParsedSelector>

options?โ€‹

SelectorScopeAnchorOptions = {}

Returnsโ€‹

boolean