sdxc

Type to search, or start from one of these:

state

not

A selector wrapper for negated state: wraps selector in :not(...) and applies the given utilities there.

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

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.not(":disabled", u.opacity(100))css({ "&:not(:disabled)": { opacity: 1 } })

Using a custom value

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

u.not(":disabled", u.opacity("2.75rem"))

Responsive design

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

u.at("md", u.not(":disabled", u.opacity(100)))

Signature

u.not(selector: string, input: UtilityInput<Node>)