Words Preloader
Multilingual greeting preloader with a curved lip that flattens as the panel slides up.
Import
tsx
import { WordsPreloader } from "@cronus-ui/ui";
bash
npx cronus-ui add words-preloader
Examples
API Reference
Generated from the component's exported types.
WordsPreloaderProps
Extends Omit< ComponentPropsWithoutRef<"div">, "children" | "onAnimationStart" | "onAnimationEnd" | "onDrag" | "onDragStart" | "onDragEnd" >, VariantProps<typeof wordsPreloaderVariants>
| Prop | Type | Default | Description |
|---|---|---|---|
ref | Ref<HTMLDivElement> | — | — |
words | readonly string[] | DEFAULT_PRELOADER_WORDS | Greetings cycled before the curve exits. Defaults to the Skiper 8 set. |
firstDelayMs | number | FIRST_DELAY_MS | Hold on the first word, in ms. Original is 1000. |
stepDelayMs | number | STEP_DELAY_MS | Hold on each following word, in ms. Original is 150. |
labels | Partial<WordsPreloaderLabels> | — | — |
layout | "page" | "contained" | "page" | — |