Interface: ModifierHit
Defined in: packages/core/src/modifier.ts:151
One modifier found on a selector: its canonical name plus the derived prop/value.
Properties
name
ts
name: string;Defined in: packages/core/src/modifier.ts:154
The modifier as written, minus outer punctuation — button--primary, -color-secondary, primary, or data-variant="ghost". Render it back with ModifierMatcher.selectorFor.
pattern?
ts
optional pattern?: boolean;Defined in: packages/core/src/modifier.ts:160
Set when the name is a * family (e.g. -icon-*, derived from a [class*="-icon-"] selector).
prop
ts
prop: string;Defined in: packages/core/src/modifier.ts:156
The property segment (a grouping key).
value?
ts
optional value?: string;Defined in: packages/core/src/modifier.ts:158
The value segment; absent for boolean modifiers.