[ @sdxc/u/layout ]
flexRowReverse
Sets display: flex; flex-direction: row-reverse.
import { flexRowReverse } from "@sdxc/u/layout";Quick reference
Every documented call, beside the CSS it emits.
| Call | CSS |
|---|---|
u.flexRowReverse() | css({ display: "flex", flexDirection: "row-reverse" }) |
Examples
Basic example
Use flexRowReverse() to lay flex items out horizontally in the opposite order; it makes the element a flex container too:
01
02
03
<div mix={[flexRowReverse(), gap(4)]}>
<div mix={[...]}>01</div>
<div mix={[...]}>02</div>
<div mix={[...]}>03</div>
</div>Applying on a state
Wrap the call in a state utility to scope it to one selector.
u.hover(u.flexRowReverse())Responsive design
Wrap the call in a container query to scope it to one width.
u.at("md", u.flexRowReverse())Signature
u.flexRowReverse()