Skip to content

place-self

Utilities for controlling how an individual item is justified and aligned at the same time.

Class Effect
place-self-auto place-self: auto;
place-self-start place-self: start;
place-self-end place-self: end;
place-self-end-safe place-self: safe end;
place-self-center place-self: center;
place-self-center-safe place-self: safe center;
place-self-stretch place-self: stretch;
place-self: Basic exampleplace-self: Basic example
if ui.div("grid h-48 grid-cols-3 gap-4") {
for c in ([]string{"place-self-start", "place-self-center", "place-self-end"}) {
ui.key(c)
if ui.div("grid rounded-lg bg-stripes stripes-violet-500/25") {
tile("", ui.cx("size-14", c))
}
}
}