Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/@unocss/core.ts>VariantHandler

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
interface VariantHandler
import { type VariantHandler } from "https://deno.land/x/netzo@0.4.78/deps/@unocss/core.ts";

Properties

Callback to process the handler.

matcher: string

The result rewritten selector for the next round of matching

optional
order: number

Order in which the variant is applied to selector.

optional
selector: (input: string, body: CSSEntries) => string | undefined

Rewrite the output selector. Often be used to append pseudo classes or parents.

optional
body: (body: CSSEntries) => CSSEntries | undefined

Rewrite the output css body. The input come in [key,value][] pairs.

optional
parent: string | [string, number] | undefined

Provide a parent selector(e.g. media query) to the output css.

optional
sort: number

Order in which the variant is sorted within single rule.

optional
layer: string | undefined

Override layer to the output css.