Skip to content

Splash ​

First-visit overlay

A brief welcome over the first load — a key visual, a logo moment. It delays people, so keep it short, skippable and rare (once).

Basic

Shown once per visitor (localStorage key).

  • It takes focus onto Skip, so Enter or Esc leaves at once, and it is skipped entirely under reduced motion.
  • duration auto-dismisses (0 = only Skip closes it); once remembers it was seen; label names it.

Usage ​

ts
import { BlessSplash } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
oncestring—localStorage key; splash shows once per key. Omit to show every load
durationnumber2500auto-dismiss after ms; 0 = manual only
skipLabelstring"Skip"
labelstring"Welcome"the dialog's accessible name

Events

NamePayloadDescription
done[]

Slots

NameScopeDescription
default{ dismiss: () => void; }

Exposed

NameTypeDescription
dismiss() => void

Released under the MIT License. Character names and artwork belong to their owners.