feat(noise-texture): introduce NoiseTexture component#944
Open
chishiyac wants to merge 2 commits intomagicuidesign:mainfrom
Open
feat(noise-texture): introduce NoiseTexture component#944chishiyac wants to merge 2 commits intomagicuidesign:mainfrom
chishiyac wants to merge 2 commits intomagicuidesign:mainfrom
Conversation
…and documentation - Added Noise Texture component, an SVG fractal noise layer utilizing feTurbulence for subtle texture overlays. - Included multiple demo examples: Noise Texture Demo, Noise Texture Demo (newsletter card), Noise Texture Demo (button), and Noise Texture Demo (input). - Updated registry and documentation to reflect the new component and its usage. - Enhanced main documentation with installation instructions and usage examples. Co-authored-by: Jinho Yeom <pwlsghq@naver.com>
|
@chishiyac is attempting to deploy a commit to the product-studio Team on Vercel. A member of the Team first needs to authorize it. |
… files - Removed redundant import statement in button component. - Cleaned up trailing whitespace in multiple documentation files for glare-hover, hexagon-pattern, noise-texture, and striped-pattern components. - Updated formatting in the noise-texture component's props interface for better readability.
Contributor
Author
|
One note: I've added my name to the credits for the components I've added. I hope that's not a problem... |
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 Noise Texture component: a reusable, pointer-events–disabled SVG overlay that uses SVG filters (
feTurbulence, desaturation, andfeComponentTransfer) so you can add grain-style texture without raster assets. It ships with four registry examples (default panel, newsletter-style card, button, and input), full Magic UI registry entries and generatedpublic/r/*.json, documentation atnoise-texture.mdx(CLI and manual install, examples, props), and sidebar/docs config updates.Changes
NoiseTextureinregistry/magicui/noise-texture.tsxwith props such asfrequency(baseFrequency),octaves,slope(post-desaturation contrast), andopacity, plus standard SVG/classNamepassthrough.noise-texture-demo,noise-texture-demo-2,noise-texture-demo-3, andnoise-texture-demo-4underregistry/example/, wired inregistry-examples.tsand the registry__index__.registry-ui.ts,registry/__index__.tsx, andpublic/r/JSON for the block and demos.content/docs/components/noise-texture.mdxandconfig/docs.tsupdate for navigation.public/llms.txtandpublic/llms-full.txtupdated to list the component and example files.Motivation
I didn't have anywhere to store the component LMAO, and why not store it in the library most used by Design Engineers? Joking aside, I just thought it could be a good addition so people can build more things in a derivative way.
Breaking Changes
None.
Screenshots
Device / browser / viewport: (e.g. Chrome · macOS · 1440×900 — match your capture)