# display

> Sets `display: inline-grid`.

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

Sets `display: inline-grid`.

## Quick reference

Every documented call, beside the CSS it emits.

| Call | CSS |
| --- | --- |
| `u.inlineGrid()` | `css({ display: "inline-grid" })` |

## Examples

### Basic example

Use `inlineGrid()` to lay out an element's children on a grid while the element itself flows inline with the text:

```tsx
<div mix={[is(96), ...]}>
	Reviewed by{" "}
	<span mix={[inlineGrid(), gridTemplate({ columns: repeat(3, "1.25rem") }), gap(1)]}>
		<span mix={[is(5), bs(5), rounded("full"), bg("brand.solid")]} />
		<span mix={[is(5), bs(5), rounded("full"), bg("success.solid")]} />
		<span mix={[is(5), bs(5), rounded("full"), bg("warning.solid")]} />
	</span>{" "}
	and two others before it was merged.
</div>
```

## Applying on a state

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

```ts
u.hover(u.inlineGrid())
```

## Responsive design

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

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

## Signature

```ts
u.inlineGrid()
```
