VariantHandler
interface VariantHandler {
body?: (body: CSSEntries) => CSSEntries | undefined;
handle?: (input: VariantHandlerContext, next: (input: VariantHandlerContext) => VariantHandlerContext) => VariantHandlerContext;
layer?: string | undefined;
matcher: string;
order?: number;
parent?: string | [string, number] | undefined;
selector?: (input: string, body: CSSEntries) => string | undefined;
sort?: number;
}§Properties
§
body?: (body: CSSEntries) => CSSEntries | undefined
[src]Rewrite the output css body. The input come in [key,value][] pairs.
§
handle?: (input: VariantHandlerContext, next: (input: VariantHandlerContext) => VariantHandlerContext) => VariantHandlerContext
[src]Callback to process the handler.
§
parent?: string | [string, number] | undefined
[src]Provide a parent selector(e.g. media query) to the output css.
§
selector?: (input: string, body: CSSEntries) => string | undefined
[src]Rewrite the output selector. Often be used to append pseudo classes or parents.