nextui.dev
Home
Docs
Saved
Pricing
Components37
  • Forms & inputs7
  • Cards13
  • Buttons, badges & avatars8
  • Feedback & display6
  • Effects3
Agents17
  • Chat inputNew
  • Task checklistNew
  • ReasoningNew
  • Tool callNew
  • Tool approvalNew
  • SourcesNew
  • Agent timelineNew
  • Artifact panelNew
  • Streaming messageNew
  • Conversation shellNew
  • Voice agentNew
  • Voice orbNew
  • Thinking ring
  • Thinking waveNew
  • Thinking sparkle
  • Thinking bot
  • Prompt deckNew
Blocks20
  • Agent chatNew
  • Pill heroNew
  • Grid hero
  • Moodboard generatorNew
  • Waitlist heroNew
  • Intro bannerNew
  • Creative home heroNew
  • Chat heroNew
  • App shelfNew
  • Usage card
  • Design resultsNew
  • Pricing tiers
  • Dashboard home
  • The shiftNew
  • Launch perksNew
  • Testimonials
  • Quote
  • Team
  • Leads tableNew
  • Sign in
Pages10
  • ASCII workspace$49
  • CRM overviewNew
  • Marketing dashboardNew
  • Developer portfolio$49
  • Particle landing$49
  • Particle story$49
  • Statement converter$49
  • AI photo studio$49
  • Group card launch$49
  • Month-end storyNew
Themes9
  • Default
  • Ember
  • Ocean
  • Forest
  • Grape
  • Rose
  • Amber
  • Clay
  • Brutal
Upgrade
nextui.dev

nextui components, blocks and themes you install with one command.

Product

  • Components
  • Blocks
  • Themes
  • Pricing

Resources

  • Docs
  • Roadmap
  • GitHub

Legal

  • License
  • Privacy
  • Terms
  • Refunds

nextUI

[ 200 OK ] · nextUI

© 2026 NEXTUI • All rights reserved.

Upgrade
ComponentsFeedback & displayText reveal
Copy promptCopy prompt

Customize

The text to reveal

Reveal word by word or letter by letter

Time between two pieces, in ms

40ms

Wait before the first piece, in ms

0ms

Time each piece takes to arrive, in ms

700ms

Element to render

Reveal only the first time; otherwise it plays again each time it enters the view

JSX · copied with Copy prompt

<TextReveal text="Words that arrive one at a time." as="h2" />

Text revealNew

Words that arrive one at a time, fading in out of a soft blur as they rise into place.

Installation

Set your access key from API keys as NEXTUI_TOKEN in .env.local and add the @nextui namespace below to components.json once. Then every item installs by name. Each install counts as a copy on a free account.

$pnpm dlx shadcn@latest add @nextui/text-reveal
1{
2 "registries": {
3 "@nextui": {
4 "url": "https://nextui.dev/r/{name}.json",
5 "headers": { "Authorization": "Bearer ${NEXTUI_TOKEN}" }
6 }
7 }
8}

Usage

1import { TextReveal } from "@/components/nextui/text-reveal";
2
3export function Intro() {
4 return <TextReveal as="h2" text="Words that arrive one at a time." />;
5}

API reference

Edit props live in the preview above, or see all 8 props
PropTypeDefaultDescription
textstring–The text to reveal
by"word" | "char""word"Reveal word by word or letter by letter
staggernumber40Time between two pieces, in ms
delaynumber0Wait before the first piece, in ms
durationnumber700Time each piece takes to arrive, in ms
as"p" | "h1" | "h2" | "h3" | "span""p"Element to render
oncebooleantrueReveal only the first time; otherwise it plays again each time it enters the view
classNamestring–Extra class on the root

Related

All components

Alerts

FAQ

Shortcuts

Sign in to see the code

Preview it freely. A free account copies code and prompts a few times a day.

Sign in