# layout.loading

Stands in for content that is still loading: a full-width line of text unless you give it the shape of what will appear

Component: [`<Layout>`](https://www.prongs.dev/docs/components/layout.md) · Renders: `<div>` · Profile: [UI](https://www.prongs.dev/docs/intents/ui.md)

## Example

```tsx
<Layout intent="layout.loading">
  …
</Layout>
```

## Choosing between neighbours

Find the row that describes your element, and use the intent on the right.

| If it is for… | Use |
|---|---|
| Stands in for content that is still loading: a full-width line of text unless you give it the shape of what will appear | `layout.loading` (this page) |
| Content that has arrived | [`layout.group`](https://www.prongs.dev/docs/intents/layout/group.md) |
| Progress while something loads (rather than [`layout.meter`](https://www.prongs.dev/docs/intents/layout/meter.md)) | `layout.loading` (this page) |

## Connections

Declared in the registry, both directions. Where an intent is used in your own code is something check and the gallery see; this site has no app code.

- Built from: [`surface.sunken`](https://www.prongs.dev/docs/intents/ui.md#surface-sunken)

## For registry authors

**Starter intents.** These are the intents `prongs add` puts in your registry, shown in this site’s theme. Yours are your own `registry.ts`: rename, restyle and add to them, and see them with `prongs add gallery`.

What this intent is built from and its entry in `components/prongs/registry.ts`. You only need this to change how it looks or to add an intent like it.

How layout.loading resolves, and its definition

Each layer adds to the one before it; a later class wins over an earlier one that sets the same thing.

- [`surface.sunken`](https://www.prongs.dev/docs/intents/ui.md#surface-sunken) — Recess cut into what it sits in

  ```
  surface-inset rounded-lg
  ```

- `layout.loading` (this page) — Stands in for content that is still loading: a full-width line of text unless you give it the shape of what will appear

  ```
  h-4 w-full animate-pulse
  ```

Final classes

```
surface-inset rounded-lg h-4 w-full animate-pulse
```

Definition

```ts
'layout.loading': {
  kind: 'semantic',
  description: 'Stands in for content that is still loading: a full-width line of text unless you give it the shape of what will appear',
  refs: ['surface.sunken'],
  binding: { classes: 'h-4 w-full animate-pulse' },
  notFor: [{ context: 'content that has arrived', instead: 'layout.group' }],
},
```
