sdxc

Type to search, or start from one of these:

layout

flex-shrink

Applies flex-shrink.

import { shrink } from "@sdxc/u/layout";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.shrink()css({ flexShrink: "0" })
u.shrink(1)css({ flexShrink: "1" })

Using a custom value

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

u.shrink()

Applying on a state

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

u.hover(u.shrink())

Responsive design

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

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

Signature

u.shrink(value?: number | (string & {}))