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

Renders

<div>

Profile

Example

Preview

One

Two

Three

<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

    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
  • Progress while something loads

    rather than layout.meter
    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.

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

    Recess cut into what it sits in

    surface-inset rounded-lg
  • 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

    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' }],
},