Usage

Wait for required startup work

tsx
import { signal, splash } from 'kuito';

const screen = signal<'loading' | 'home'>('loading');
const loadSession = () => fetch('https://example.com/session');

splash.hold(); // before the first render: keep it up

async function start() {
  await loadSession();
  screen.value = 'home';
  await splash.hide({ fade: true }); // after the home screen is drawn
}

Signatures

ts
({ fade }?: { fade?: boolean; }): Promise<void>

Parameters

NameTypeRequiredDescription
__0{ fade?: boolean;}No—
Default: {}

Returns

Promise<void>

Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.