sdxc

Type to search, or start from one of these:

layout

align-items

Sets item and/or content placement on both axes from whichever option keys are given, so a partial options object emits only the declarations belonging to the keys it carries.

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

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.place({ items: "center", content: "between" })css({ alignItems: "center", justifyItems: "center", alignContent: "space-between", justifyContent: "space-between" })

Using a custom value

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

u.place({ items: "center", content: "between" })

Applying on a state

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

u.hover(u.place({ items: "center", content: "between" }))

Responsive design

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

u.at("md", u.place({ items: "center", content: "between" }))

Signature

u.place(options?: PlaceOptions)