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
Layout intents
Example
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.loadingthis pageContent that has arrived
layout.groupProgress while something loads
rather thanlayout.meterlayout.loadingthis 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
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' }],
},