prongs
GitHub

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

Comes from

starter
Read https://www.prongs.dev/docs/intents/layout/loading.md and tell me whether layout.loading fits what I am building.

Example

Preview
{people === undefined && <Layout intent="layout.loading" className="h-12" aria-busy="true" />}

Connections

Choosing between neighbours

  • 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
  • Content that has arrived

    layout.group
  • Standing in for content that has not arrived

    rather than feedback.busy
    layout.loading
  • Standing in for content that is still loading

    rather than layout.empty
    layout.loading

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