sdxc

Type to search, or start from one of these:

effects

visibility

Controls the CSS visibility property: a "hidden" element keeps its layout box and can transition back to "visible", which is what a selection indicator or hover-triggered surface needs to fade in place.

import { visibility } from "@sdxc/u/effects";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.visibility()css({ visibility: "visible" })
u.visibility("hidden")css({ visibility: "hidden" })

Using a custom value

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

u.visibility()

Applying on a state

Wrap the call in a state utility to scope it to one selector.

u.hover(u.visibility())

Responsive design

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

u.at("md", u.visibility())

Signature

u.visibility(value?: VisibilityValue)