# flexRowReverse

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

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

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

## 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:

```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.

```ts
u.hover(u.flexRowReverse())
```

## Responsive design

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

```ts
u.at("md", u.flexRowReverse())
```

## Signature

```ts
u.flexRowReverse()
```
