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
Read https://www.prongs.dev/docs/intents/layout/loading.md and tell me whether layout.loading fits what I am building.Layout intents
Example
{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.loadingContent that has arrived
layout.groupStanding in for content that has not arrived
rather thanfeedback.busylayout.loadingStanding in for content that is still loading
rather thanlayout.emptylayout.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.sunkenRecess cut into what it sits in
surface-inset rounded-lg
layout.loadingStands 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
surface-inset rounded-lg h-4 w-full animate-pulse
'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' }],
},