Skip to content

feat(dia-text-reveal): add Dia Text Reveal component with examples an…#948

Open
chishiyac wants to merge 1 commit intomagicuidesign:mainfrom
chishiyac:feat/add-dia-text-reveal-component
Open

feat(dia-text-reveal): add Dia Text Reveal component with examples an…#948
chishiyac wants to merge 1 commit intomagicuidesign:mainfrom
chishiyac:feat/add-dia-text-reveal-component

Conversation

@chishiyac
Copy link
Copy Markdown
Contributor

Description

This PR adds the Dia Text Reveal component: a Motion-powered text reveal where a horizontal color band sweeps across copy with a gradient shine, then settles on your theme foreground. It supports a single string or rotating phrases, viewport-triggered playback, and optional layout stability for varying string lengths. The change ships with four registry examples, full Magic UI registry entries and generated public/r/*.json, documentation at dia-text-reveal.mdx (CLI and manual install, examples, props), and sidebar/docs config updates.

Changes

  • Component: New DiaTextReveal in registry/magicui/dia-text-reveal.tsx, built with motion/react (useMotionValue, useTransform, animate, useInView). Props include text (string or array), colors, textColor, duration, delay, repeat / repeatDelay, startOnView, once, fixedWidth, and className.
  • Examples: dia-text-reveal-demo through dia-text-reveal-demo-4 under registry/example/, wired in registry-examples.ts and the registry __index__.
  • Registry: Entries in registry-ui.ts, registry/__index__.tsx, and registry.json / public/registry.json / public/r/*.json for the block and demos.
  • Docs: New content/docs/components/dia-text-reveal.mdx and config/docs.ts update for navigation.
  • LLM docs: public/llms.txt and public/llms-full.txt updated to list the component and example files.

Motivation

Provide a reusable, documentation-ready text reveal for hero and heading patterns—gradient sweep plus optional phrase rotation—without extra layout wrappers for common inline use cases. The motion and feel are inspired by the headline treatment on Dia Browser.

Breaking Changes

None.

Screenshots

Device / browser / viewport: (e.g., Chrome · macOS · 1440×900 — match your capture)

Gravacao.de.Tela.2026-04-13.as.21.23.24.mov
Gravacao.de.Tela.2026-04-13.as.21.23.54.mov
Before After
N/A (new component) Dia Text Reveal docs with live previews; custom gradient, rotating phrases, and duration/delay examples in the registry

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 14, 2026

@chishiyac is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

@Yeom-JinHo Yeom-JinHo self-requested a review April 14, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant