feat(dia-text-reveal): add Dia Text Reveal component with examples an…#948
Open
chishiyac wants to merge 1 commit intomagicuidesign:mainfrom
Open
feat(dia-text-reveal): add Dia Text Reveal component with examples an…#948chishiyac wants to merge 1 commit intomagicuidesign:mainfrom
chishiyac wants to merge 1 commit intomagicuidesign:mainfrom
Conversation
|
@chishiyac is attempting to deploy a commit to the product-studio Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 atdia-text-reveal.mdx(CLI and manual install, examples, props), and sidebar/docs config updates.Changes
DiaTextRevealinregistry/magicui/dia-text-reveal.tsx, built withmotion/react(useMotionValue,useTransform,animate,useInView). Props includetext(string or array),colors,textColor,duration,delay,repeat/repeatDelay,startOnView,once,fixedWidth, andclassName.dia-text-reveal-demothroughdia-text-reveal-demo-4underregistry/example/, wired inregistry-examples.tsand the registry__index__.registry-ui.ts,registry/__index__.tsx, andregistry.json/public/registry.json/public/r/*.jsonfor the block and demos.content/docs/components/dia-text-reveal.mdxandconfig/docs.tsupdate for navigation.public/llms.txtandpublic/llms-full.txtupdated 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