sdxc

Type to search, or start from one of these:

state

active

Sugar over when("&:active", input).

import { active } from "@sdxc/u/state";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.active(u.bg("brand.solid"))css({ "&:active": { backgroundColor: "..." } })

Using a custom value

Every scale argument also takes a raw CSS value, which passes through untouched.

u.active(u.bg("brand.solid"))

Responsive design

Wrap the call in a container query to scope it to one width.

u.at("md", u.active(u.bg("brand.solid")))

Signature

u.active(input: UtilityInput<Node>)