Skip to content

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

🐛 fix: style fixes for all components on mobile

Dillion Verma6c2a412c6350
diff --git a/components/component-wrapper.tsx b/components/component-wrapper.tsx
index 0f361953..8933bd9f 100644
--- a/components/component-wrapper.tsx
+++ b/components/component-wrapper.tsx
@@ -8,7 +8,7 @@ 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 bg-background p-8 md:p-16",
+ "not-prose max-w-screen relative flex flex-col items-center justify-center rounded-xl bg-background p-0 md:border md:p-16",
className,
)}
>
diff --git a/registry/components/example/animated-beam-bidirectional.tsx b/registry/components/example/animated-beam-bidirectional.tsx
index 49fb2ddd..566f8f1e 100644
--- a/registry/components/example/animated-beam-bidirectional.tsx
+++ b/registry/components/example/animated-beam-bidirectional.tsx
@@ -29,7 +29,7 @@ export default function AnimatedBeamDemo() {
return (
<div
- className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 shadow-2xl"
+ className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-2xl"
ref={containerRef}
>
<div className="flex h-full w-full flex-col items-stretch justify-between gap-10">
diff --git a/registry/components/example/animated-beam-demo.tsx b/registry/components/example/animated-beam-demo.tsx
index 93341b8e..e1025bf5 100644
--- a/registry/components/example/animated-beam-demo.tsx
+++ b/registry/components/example/animated-beam-demo.tsx
@@ -34,7 +34,7 @@ export default function AnimatedBeamDemo() {
return (
<div
- className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 shadow-2xl"
+ className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-2xl"
ref={containerRef}
>
<div className="flex h-full w-full flex-col items-stretch justify-between gap-10">
diff --git a/registry/components/example/animated-beam-multiple-inputs.tsx b/registry/components/example/animated-beam-multiple-inputs.tsx
index 5d7eacd2..8bd6fe9b 100644
--- a/registry/components/example/animated-beam-multiple-inputs.tsx
+++ b/registry/components/example/animated-beam-multiple-inputs.tsx
@@ -34,7 +34,7 @@ export default function AnimatedBeamDemo() {
return (
<div
- className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 shadow-2xl"
+ className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-2xl"
ref={containerRef}
>
<div className="flex h-full w-full flex-row items-stretch justify-between gap-10">
diff --git a/registry/components/example/animated-beam-multiple-outputs.tsx b/registry/components/example/animated-beam-multiple-outputs.tsx
index 3b15e92c..fe922a00 100644
--- a/registry/components/example/animated-beam-multiple-outputs.tsx
+++ b/registry/components/example/animated-beam-multiple-outputs.tsx
@@ -34,7 +34,7 @@ export default function AnimatedBeamDemo() {
return (
<div
- className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 shadow-2xl"
+ className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-2xl"
ref={containerRef}
>
<div className="flex h-full w-full flex-row items-stretch justify-between gap-10">
diff --git a/registry/components/example/animated-beam-unidirectional.tsx b/registry/components/example/animated-beam-unidirectional.tsx
index 5d49500a..de7cb784 100644
--- a/registry/components/example/animated-beam-unidirectional.tsx
+++ b/registry/components/example/animated-beam-unidirectional.tsx
@@ -29,7 +29,7 @@ export default function AnimatedBeamDemo() {
return (
<div
- className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 shadow-2xl"
+ className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-2xl"
ref={containerRef}
>
<div className="flex h-full w-full flex-col items-stretch justify-between gap-10">
diff --git a/registry/components/example/animated-grid-pattern-demo.tsx b/registry/components/example/animated-grid-pattern-demo.tsx
index 8b58a0a5..ee9e2bf5 100644
--- a/registry/components/example/animated-grid-pattern-demo.tsx
+++ b/registry/components/example/animated-grid-pattern-demo.tsx
@@ -5,7 +5,7 @@ import AnimatedGridPattern from "@/registry/components/magicui/animated-grid-pat
const AnimatedGridPatternDemo = () => {
return (
- <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 shadow-2xl">
+ <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-2xl">
<p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">
Animated Grid Pattern
</p>
diff --git a/registry/components/example/dot-pattern-demo.tsx b/registry/components/example/dot-pattern-demo.tsx
index a58fcb90..9cae1d36 100644
--- a/registry/components/example/dot-pattern-demo.tsx
+++ b/registry/components/example/dot-pattern-demo.tsx
@@ -5,7 +5,7 @@ import DotPattern from "@/registry/components/magicui/dot-pattern";
const DotPatternDemo = () => {
return (
- <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 shadow-2xl">
+ <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-2xl">
<p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">
Dot Pattern
</p>
diff --git a/registry/components/example/dot-pattern-linear-gradient.tsx b/registry/components/example/dot-pattern-linear-gradient.tsx
index 76f8085a..fea0e98e 100644
--- a/registry/components/example/dot-pattern-linear-gradient.tsx
+++ b/registry/components/example/dot-pattern-linear-gradient.tsx
@@ -5,7 +5,7 @@ import DotPattern from "@/registry/components/magicui/dot-pattern";
const DotPatternDemo2 = () => {
return (
- <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 shadow-2xl">
+ <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-2xl">
<p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">
Dot Pattern
</p>
diff --git a/registry/components/example/globe-demo.tsx b/registry/components/example/globe-demo.tsx
index dff428ca..b64b4f07 100644
--- a/registry/components/example/globe-demo.tsx
+++ b/registry/components/example/globe-demo.tsx
@@ -2,7 +2,7 @@ import Globe from "@/registry/components/magicui/globe";
export default function GlobeDemo() {
return (
- <div className="relative flex h-full w-full max-w-[32rem] items-center justify-center overflow-hidden rounded-lg border bg-background px-40 pb-40 pt-8 shadow-2xl md:pb-60">
+ <div className="relative flex h-full w-full max-w-[32rem] items-center justify-center overflow-hidden rounded-lg border bg-background px-40 pb-40 pt-8 md:pb-60 md:shadow-2xl">
<span className="pointer-events-none whitespace-pre-wrap bg-gradient-to-b from-black to-gray-300/80 bg-clip-text text-center text-8xl font-semibold leading-none text-transparent dark:from-white dark:to-slate-900/10">
Globe
</span>
diff --git a/registry/components/example/grid-pattern-dashed.tsx b/registry/components/example/grid-pattern-dashed.tsx
index 35376aba..29599f57 100644
--- a/registry/components/example/grid-pattern-dashed.tsx
+++ b/registry/components/example/grid-pattern-dashed.tsx
@@ -5,7 +5,7 @@ import GridPattern from "@/registry/components/magicui/grid-pattern";
const GridPatternDashed = () => {
return (
- <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 shadow-2xl">
+ <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-2xl">
<p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">
Grid Pattern
</p>
diff --git a/registry/components/example/grid-pattern-demo.tsx b/registry/components/example/grid-pattern-demo.tsx
index 3e2cbb03..f1ef6677 100644
--- a/registry/components/example/grid-pattern-demo.tsx
+++ b/registry/components/example/grid-pattern-demo.tsx
@@ -5,7 +5,7 @@ import GridPattern from "@/registry/components/magicui/grid-pattern";
const GridPatternDemo = () => {
return (
- <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 shadow-2xl">
+ <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-2xl">
<p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">
Grid Pattern
</p>
diff --git a/registry/components/example/grid-pattern-linear-gradient.tsx b/registry/components/example/grid-pattern-linear-gradient.tsx
index 7c5eae4d..428a54ef 100644
--- a/registry/components/example/grid-pattern-linear-gradient.tsx
+++ b/registry/components/example/grid-pattern-linear-gradient.tsx
@@ -5,7 +5,7 @@ import GridPattern from "@/registry/components/magicui/grid-pattern";
const GridPatternLinearGradient = () => {
return (
- <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 shadow-2xl">
+ <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-2xl">
<p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">
Grid Pattern
</p>
diff --git a/registry/components/example/linear-gradient-demo.tsx b/registry/components/example/linear-gradient-demo.tsx
index c7361dca..4be998bb 100644
--- a/registry/components/example/linear-gradient-demo.tsx
+++ b/registry/components/example/linear-gradient-demo.tsx
@@ -2,7 +2,7 @@ import LinearGradient from "@/registry/components/magicui/linear-gradient";
export default function LinearGradientDemo() {
return (
- <div className="relative flex h-full w-full items-center justify-center rounded-lg border bg-background p-20 shadow-2xl">
+ <div className="relative flex h-full w-full items-center justify-center rounded-lg border bg-background p-20 md:shadow-2xl">
<p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">
Linear Gradient
</p>
diff --git a/registry/components/example/marquee-3d.tsx b/registry/components/example/marquee-3d.tsx
index c4b29d40..e34267d4 100644
--- a/registry/components/example/marquee-3d.tsx
+++ b/registry/components/example/marquee-3d.tsx
@@ -29,7 +29,7 @@ const logos = [
const Marquee3D = () => {
return (
- <div className="relative flex h-full w-96 flex-col items-center justify-center gap-4 overflow-hidden rounded-lg border bg-background px-20 shadow-2xl">
+ <div className="relative flex h-full w-96 flex-col items-center justify-center gap-4 overflow-hidden rounded-lg border bg-background px-20 md:shadow-2xl">
<div className="flex flex-row gap-4 [perspective:300px]">
<Marquee
className="h-96 justify-center overflow-hidden [--duration:60s] [--gap:1rem]"
diff --git a/registry/components/example/marquee-demo-vertical.tsx b/registry/components/example/marquee-demo-vertical.tsx
index 9836ca59..71263482 100644
--- a/registry/components/example/marquee-demo-vertical.tsx
+++ b/registry/components/example/marquee-demo-vertical.tsx
@@ -73,7 +73,7 @@ const ReviewCard = ({
const MarqueeDemoVertical = () => {
return (
- <div className="relative flex h-96 flex-row items-center justify-center overflow-hidden rounded-lg border bg-background shadow-2xl sm:px-20">
+ <div className="relative flex h-96 flex-row items-center justify-center overflow-hidden rounded-lg border bg-background sm:px-20 md:shadow-2xl">
<Marquee pauseOnHover vertical className="[--duration:20s]">
{firstRow.map((review) => (
<ReviewCard key={review.username} {...review} />
diff --git a/registry/components/example/marquee-demo.tsx b/registry/components/example/marquee-demo.tsx
index 25cd71de..1272cfdb 100644
--- a/registry/components/example/marquee-demo.tsx
+++ b/registry/components/example/marquee-demo.tsx
@@ -80,7 +80,7 @@ const ReviewCard = ({
const MarqueeDemo = () => {
return (
- <div className="relative flex h-full w-full flex-col items-center justify-center overflow-hidden rounded-lg border bg-background py-20 shadow-2xl">
+ <div className="relative flex h-full w-full flex-col items-center justify-center overflow-hidden rounded-lg border bg-background py-20 md:shadow-2xl">
<Marquee pauseOnHover className="[--duration:20s]">
{firstRow.map((review) => (
<ReviewCard key={review.username} {...review} />
diff --git a/registry/components/example/marquee-logos.tsx b/registry/components/example/marquee-logos.tsx
index 2cedbd62..1974a0f4 100644
--- a/registry/components/example/marquee-logos.tsx
+++ b/registry/components/example/marquee-logos.tsx
@@ -38,7 +38,7 @@ const Logo = ({ name, img }: { name: string; img: string }) => {
const MarqueeLogos = () => {
return (
- <div className="relative flex h-full w-full flex-col items-center justify-center gap-4 overflow-hidden rounded-lg border bg-background py-20 shadow-2xl">
+ <div className="md:shadow-2xl2xl relative flex h-full w-full flex-col items-center justify-center gap-4 overflow-hidden rounded-lg border bg-background py-20">
<Marquee className="[--gap:3rem]">
{logos.map((logo, idx) => (
<Logo key={idx} {...logo} />
diff --git a/registry/components/example/meteors-demo.tsx b/registry/components/example/meteors-demo.tsx
index 70cc8289..e49e40fb 100644
--- a/registry/components/example/meteors-demo.tsx
+++ b/registry/components/example/meteors-demo.tsx
@@ -2,7 +2,7 @@ import Meteors from "@/registry/components/magicui/meteors";
export default function MeteorDemo() {
return (
- <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 shadow-2xl">
+ <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-2xl">
<Meteors number={30} />
<p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">
Meteors
diff --git a/registry/components/example/particles-demo.tsx b/registry/components/example/particles-demo.tsx
index 65f49721..49267f32 100644
--- a/registry/components/example/particles-demo.tsx
+++ b/registry/components/example/particles-demo.tsx
@@ -15,7 +15,7 @@ const ParticlesDemo = () => {
console.log("color", color);
return (
- <div className="relative flex h-[400px] w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-4 shadow-2xl">
+ <div className="relative flex h-[400px] w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-4 md:shadow-2xl">
<span className="pointer-events-none z-10 whitespace-pre-wrap bg-gradient-to-b from-black to-gray-300/80 bg-clip-text text-center text-7xl font-semibold leading-none text-transparent dark:from-white dark:to-black md:text-9xl">
Particles
</span>
diff --git a/registry/components/example/radial-gradient-demo.tsx b/registry/components/example/radial-gradient-demo.tsx
index 85c83ed6..0ec83dfc 100644
--- a/registry/components/example/radial-gradient-demo.tsx
+++ b/registry/components/example/radial-gradient-demo.tsx
@@ -2,7 +2,7 @@ import RadialGradient from "@/registry/components/magicui/radial-gradient";
export default function RadialGradientDemo() {
return (
- <div className="relative flex h-full w-full items-center justify-center rounded-lg border bg-background p-20 shadow-2xl">
+ <div className="relative flex h-full w-full items-center justify-center rounded-lg border bg-background p-20 md:shadow-2xl">
<p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-black dark:text-white">
Radial Gradient
</p>
diff --git a/registry/components/example/retro-grid-demo.tsx b/registry/components/example/retro-grid-demo.tsx
index de5b9525..819e5677 100644
--- a/registry/components/example/retro-grid-demo.tsx
+++ b/registry/components/example/retro-grid-demo.tsx
@@ -4,7 +4,7 @@ import RetroGrid from "@/registry/components/magicui/retro-grid";
const RetroGridDemo = () => {
return (
- <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 shadow-2xl">
+ <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-2xl">
<span className="pointer-events-none z-10 whitespace-pre-wrap bg-gradient-to-b from-[#ffd319] via-[#ff2975] to-[#8c1eff] bg-clip-text text-center text-7xl font-bold leading-none tracking-tighter text-transparent">
Retro Grid
</span>
diff --git a/registry/components/example/ripple-demo.tsx b/registry/components/example/ripple-demo.tsx
index c6e46566..9ba561aa 100644
--- a/registry/components/example/ripple-demo.tsx
+++ b/registry/components/example/ripple-demo.tsx
@@ -2,7 +2,7 @@ import Ripple from "@/registry/components/magicui/ripple";
const RippleDemo = () => {
return (
- <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 shadow-2xl">
+ <div className="relative flex h-full w-full items-center justify-center overflow-hidden rounded-lg border bg-background p-20 md:shadow-2xl">
<p className="z-10 whitespace-pre-wrap text-center text-5xl font-medium tracking-tighter text-white">
Ripple
</p>
diff --git a/registry/components/example/shimmer-button-demo.tsx b/registry/components/example/shimmer-button-demo.tsx
index c8b2c555..d74211c4 100644
--- a/registry/components/example/shimmer-button-demo.tsx
+++ b/registry/components/example/shimmer-button-demo.tsx
@@ -2,10 +2,12 @@ import ShimmerButton from "@/registry/components/magicui/shimmer-button";
export default function ShimmerButtonDemo() {
return (
- <ShimmerButton className="shadow-2xl">
- <span className="whitespace-pre-wrap text-center text-sm font-medium leading-none tracking-tight text-white dark:from-white dark:to-slate-900/10 lg:text-lg">
- Shimmer Button
- </span>
- </ShimmerButton>
+ <div className="z-10 flex min-h-[16rem] items-center justify-center">
+ <ShimmerButton className="shadow-2xl">
+ <span className="whitespace-pre-wrap text-center text-sm font-medium leading-none tracking-tight text-white dark:from-white dark:to-slate-900/10 lg:text-lg">
+ Shimmer Button
+ </span>
+ </ShimmerButton>
+ </div>
);
}