Skip to content

ViewLoading ​

Source: client/lib/theme/vueda-tailwind/views/index.js

Centers the loading status within the route container.

Vue component: ViewLoading

SlotDefault classesDescription
rootflex justify-center px-6 py-12Centers the loading status within the route container.
contentflex max-w-sm flex-col gap-3Holds the status and any caller-supplied details.
statusflex items-center justify-center gap-3 text-muted-foregroundAligns the icon and loading message.
crestsize-5 shrink-0Loading icon size.
slowCrestsize-5 shrink-0 text-warningSlow-load icon size and color.
bodyRowflex flex-col gap-1 text-centerOptional context and request details below the status.
bodyRowTexttext-smNormal loading message.
bodyRowSubtext-xs text-muted-foregroundOptional caller-provided context.
requestbreak-all font-mono text-xs text-muted-foregroundOptional HTTP verb and path.
heartbeatExtra classes for the optional request and dependency status strip.
slowTitletext-smMessage shown once the slow threshold is reached.
slowBlurbtext-xs text-muted-foregroundOptional explanation of a slow load.
actionsflex flex-wrap justify-center gap-2Caller-provided actions during a slow load.

root ​

Centers the loading status within the route container.

Default classes:

flex justify-center px-6 py-12

Source: client/lib/theme/vueda-tailwind/views/ViewLoading.theme.js:12

content ​

Holds the status and any caller-supplied details.

Default classes:

flex max-w-sm flex-col gap-3

Source: client/lib/theme/vueda-tailwind/views/ViewLoading.theme.js:16

status ​

Aligns the icon and loading message.

Default classes:

flex items-center justify-center gap-3 text-muted-foreground

Source: client/lib/theme/vueda-tailwind/views/ViewLoading.theme.js:20

crest ​

Loading icon size.

Default classes:

size-5 shrink-0

Source: client/lib/theme/vueda-tailwind/views/ViewLoading.theme.js:24

slowCrest ​

Slow-load icon size and color.

Default classes:

size-5 shrink-0 text-warning

Source: client/lib/theme/vueda-tailwind/views/ViewLoading.theme.js:28

bodyRow ​

Optional context and request details below the status.

Default classes:

flex flex-col gap-1 text-center

Source: client/lib/theme/vueda-tailwind/views/ViewLoading.theme.js:32

bodyRowText ​

Normal loading message.

Default classes:

text-sm

Source: client/lib/theme/vueda-tailwind/views/ViewLoading.theme.js:36

bodyRowSub ​

Optional caller-provided context.

Default classes:

text-xs text-muted-foreground

Source: client/lib/theme/vueda-tailwind/views/ViewLoading.theme.js:40

request ​

Optional HTTP verb and path.

Default classes:

break-all font-mono text-xs text-muted-foreground

Source: client/lib/theme/vueda-tailwind/views/ViewLoading.theme.js:44

heartbeat ​

Extra classes for the optional request and dependency status strip.

Source: client/lib/theme/vueda-tailwind/views/ViewLoading.theme.js:48

slowTitle ​

Message shown once the slow threshold is reached.

Default classes:

text-sm

Source: client/lib/theme/vueda-tailwind/views/ViewLoading.theme.js:52

slowBlurb ​

Optional explanation of a slow load.

Default classes:

text-xs text-muted-foreground

Source: client/lib/theme/vueda-tailwind/views/ViewLoading.theme.js:56

actions ​

Caller-provided actions during a slow load.

Default classes:

flex flex-wrap justify-center gap-2

Source: client/lib/theme/vueda-tailwind/views/ViewLoading.theme.js:60