Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

🐛 fix: component

Dillion Verma7e60693ee75c
diff --git a/components/component-wrapper.tsx b/components/component-wrapper.tsx
index a7f9344b..fddab9dd 100644
--- a/components/component-wrapper.tsx
+++ b/components/component-wrapper.tsx
@@ -8,20 +8,19 @@ const ComponentWrapper = ({ className, children }: ComponentWrapperProps) => {
return (
<div
className={cn(
- "not-prose max-w-screen relative flex flex-col items-center justify-center rounded-xl border p-8 backdrop-blur-xl md:p-20",
+ "not-prose max-w-screen relative flex flex-col items-center justify-center rounded-xl border bg-background p-8 md:p-20",
className,
)}
>
- {children}
-
<div
className={cn(
- `absolute inset-0 -z-10 h-full w-full [background-size:16px_16px]`,
+ `absolute inset-0 h-full w-full [background-size:16px_16px]`,
`bg-[radial-gradient(#00000055_1px,transparent_1px)] [--mask-offset:60px] dark:bg-[radial-gradient(#ffffff22_1px,transparent_1px)]`,
`[WebkitMask:mask:linear-gradient(to_bottom,transparent,#fff_var(--mask-offset)_calc(100%-var(--mask-offset)),transparent),linear-gradient(to_right,transparent,#fff_var(--mask-offset)_calc(100%-var(--mask-offset)),transparent)] [mask:linear-gradient(to_bottom,transparent,#fff_var(--mask-offset)_calc(100%-var(--mask-offset)),transparent),linear-gradient(to_right,transparent,#fff_var(--mask-offset)_calc(100%-var(--mask-offset)),transparent)]`,
`[--webkit-mask-composite:source-in,xor] [mask-composite:intersect]`,
)}
/>
+ {children}
</div>
);
};
diff --git a/content/components/shimmer-button.mdx b/content/components/shimmer-button.mdx
index e413bbdb..387a3cec 100644
--- a/content/components/shimmer-button.mdx
+++ b/content/components/shimmer-button.mdx
@@ -97,3 +97,7 @@ components/magicui/shimmer-button.tsx
| background | string | The background of the button | radial-gradient(ellipse 80% 50% at 50% 120%,rgba(62, 61, 117),rgba(13, 13, 33)) |
| className | string | The class name of the button | undefined |
| children | React.ReactNode | The children of the button | undefined |
+
+## Credits
+
+Credit to [@jh3yy](https://twitter.com/jh3yy/status/1656423856276488192) for inspiring this component.