Feedback
SplashScreen
A brand screen for the app boot, with a minimum duration, skipped under reduced motion.
<script>
import { SplashScreen } from "@codeatlasdev/ui";
</script>
<SplashScreen ready={session.loaded} minDuration={600}>
{#snippet logo()}<Wordmark />{/snippet}
</SplashScreen>
A role="status" region named “Loading…”. It leaves once ready is true and it has shown for minDuration, so a fast boot never flashes it (LoadingBoundary does the same for content). Under prefers-reduced-motion: reduce it is skipped: nothing renders and ondone fires at once.
Boot
At least 800 ms, then waits for the 1.2 s fake load.
Splash screens shown: 0
Reference #844 · Pick in the gallery
Code
Props
| Prop | Type | Default | Description |
|---|---|---|---|
logo | Snippet | undefined | Brand mark in the middle. |
ready | boolean | true | The app finished booting; the splash then waits out `minDuration`. |
minDuration | number | 600 | Minimum ms on screen, from first show. |
label | string | 'Loading…' (localized) | Accessible name. |
ondone | () => void | undefined | Called when it is gone or skipped. |
class | string | '' | Extra class names. |