Interface: ClassUsage
Defined in: packages/index/src/index.ts:54
A class-attribute usage: the classes on one element, the specific token under inspection, and the resolved base component class (when one of the tokens names a documented component). Producers for HTML, JSX, and CSS selectors all emit this shape.
Properties
base?
ts
optional base?: string;Defined in: packages/index/src/index.ts:56
The base component class among the tokens, if any (e.g. .button → button).
loc?
ts
optional loc?: SourceSpan;Defined in: packages/index/src/index.ts:62
Where the token sits in the host document.
token
ts
token: string;Defined in: packages/index/src/index.ts:60
The specific token this usage is about (e.g. a -modifier).
tokens
ts
tokens: string[];Defined in: packages/index/src/index.ts:58
Every class token on the element.