SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

flexRowReverse

Sets display: flex; flex-direction: row-reverse.

tsx
import { flexRowReverse } from "@sdxc/u/layout";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
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
tsx
<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.

typescript
u.hover(u.flexRowReverse())

Responsive design

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

typescript
u.at("md", u.flexRowReverse())

Signature

typescript
u.flexRowReverse()
@sdxc/u

Can’t find it? Contact us