All components
Gradient Border
bordersUi-Layouts component.
responsive · 600px
Install
Same command in any shadcn project — Next.js:
$
npx shadcn@latest add https://your-domain/r/gradient-border.jsonUsage
import Cmp from "@/registry/ui-layouts/gradient-border";
export default function Demo() {
return <Cmp />;
}Component source
// https://cruip-tutorials.vercel.app/cards-hover-effect/
import Image from 'next/image';
import React from 'react';
function GradientBorder() {
return (
<>
<div className='w-full max-w-[422px] mx-auto [background:linear-gradient(45deg,#080b11,--theme(--color-slate-800)_50%,#172033)_padding-box,conic-gradient(from_var(--border-angle),--theme(--color-slate-600/.48)_80%,--theme(--color-indigo-500)_86%,--theme(--color-indigo-300)_90%,--theme(--color-indigo-500)_94%,--theme(--color-slate-600/.48))_border-box] rounded-2xl border border-transparent animate-border '>
<div className='relative text-center z-10 px-0 py-16 rounded-2xl w-fit h-full mx-auto'>
<>
<Image
src={'/chat_zinhdw.webp'}
alt='grid'
width={600}
className='mx-auto w-[85%]'
height={600}
/>
<h1 className='text-xl font-semibold tracking-tight text-white'>
Create Group Effortlessly
</h1>
<p className='text-base pt-2 text-neutral-300 capitalize'>
Seamless chats, crystal-clear videos, and <br />
premium audio quality
</p>
</>
</div>
</div>
</>
);
}
export default GradientBorder;Source: Ui-Layouts