state
after
Applies the given utilities to an element's ::after pseudo-element.
import { after } from "@sdxc/u/state";Quick reference
Every documented call, beside the CSS it emits.
| Call | CSS |
|---|---|
u.after([u.raw({ content: '""' }), u.absolute()]) | css({ "&::after": { content: '""', position: "absolute" } }) |
Using a custom value
Every scale argument also takes a raw CSS value, which passes through untouched.
u.after([u.raw({ content: '""' }), u.absolute()])Responsive design
Wrap the call in a container query to scope it to one width.
u.at("md", u.after([u.raw({ content: '""' }), u.absolute()]))Signature
u.after(input: UtilityInput<Node>)