Text
Text
Drop In
Headline whose words drop in from above with a slight tilt that settles.
Install
Usage
<Center>
<DropIn text="Fresh drops every Friday" />
</Center>Props
| Name | Type | Default | Description |
|---|---|---|---|
font? | "mono" | "heading" | "body" | — | |
delay? | number | — | Frames to wait before entering. |
duration? | number | — | Enter duration in frames. Defaults to 0.6s. |
exit? | number | boolean | — | Exit at the end of the parent `<Sequence>`. `false` keeps it on screen, a number sets the exit length in frames. |
motion? | MotionPreset | — | Override the theme's motion personality. |
stagger? | number | — | Frames between units. Defaults at 30fps: char 1, word 2, line 5. |
style? | CSSProperties | — | |
className? | string | — | |
text | string | — | |
split? | "word" | "char" | "line" | — | What staggers in. `line` splits on "\n". |
size? | number | — | Font size in design units. |
weight? | number | — | |
color? | string | — | |
accentColor? | string | — | |
accentWords? | string[] | — | Words painted in the accent color. Case and punctuation are ignored. |
align? | "left" | "right" | "center" | — |
Use
- Playful announcements, drops and release titles
- Friendly, casual brands
Avoid
- Serious or premium tone — use
blur-in
Dependencies
Source
registry/items/drop-in.tsx
/**
* @title Drop In
* @category text
* @description Headline whose words drop in from above with a slight tilt that settles.
* @duration 30
* @use Playful announcements, drops and release titles
* @use Friendly, casual brands
* @avoid Serious or premium tone — use `blur-in`
* @tags drop, fall, playful, headline
* @preset text-reveal
* @example
* <Center>
* <DropIn text="Fresh drops every Friday" />
* </Center>
*/
import { TextReveal, type TextRevealProps } from "./text-reveal";
export type DropInProps = Omit<TextRevealProps, "effect">;
export function DropIn(props: DropInProps) {
return <TextReveal {...props} effect="drop" />;
}