Skip to content
Preloaders

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>

Skip WordsPreloaderProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>
words
readonly string[]DEFAULT_PRELOADER_WORDSGreetings cycled before the curve exits. Defaults to the Skiper 8 set.
firstDelayMs
numberFIRST_DELAY_MSHold on the first word, in ms. Original is 1000.
stepDelayMs
numberSTEP_DELAY_MSHold on each following word, in ms. Original is 150.
labels
Partial<WordsPreloaderLabels>
layout
"page" | "contained""page"