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.
durationauto-dismisses (0 = only Skip closes it);onceremembers it was seen;labelnames it.
Usage
ts
import { BlessSplash } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
once | string | — | localStorage key; splash shows once per key. Omit to show every load |
duration | number | 2500 | auto-dismiss after ms; 0 = manual only |
skipLabel | string | "Skip" | |
label | string | "Welcome" | the dialog's accessible name |
Events
| Name | Payload | Description |
|---|---|---|
done | [] |
Slots
| Name | Scope | Description |
|---|---|---|
default | { dismiss: () => void; } |
Exposed
| Name | Type | Description |
|---|---|---|
dismiss | () => void |