Card Overlap Scroll
basically a card but it's overlapped with other cards and more cooler
Installation
npx shadcn@latest add http://localhost:3000/labs/r/card-overlap-scroll.jsonyarn dlx shadcn@latest add http://localhost:3000/labs/r/card-overlap-scroll.jsonpnpx shadcn@latest add http://localhost:3000/labs/r/card-overlap-scroll.jsonbunx shadcn@latest add http://localhost:3000/labs/r/card-overlap-scroll.jsonUsage
import { OverlapCards } from "@/components/card-overlap-scroll";
export default function CardOverlapScrollPage() {
return (
<OverlapCards
cards={[
{
description: "step 1",
},
{
description: "step 2",
},
{
description: "step 3",
},
{
description: "step 4",
},
{
description: "step 5",
},
]}
className="bg-background min-h-[800px] w-full"
/>
);
}API Reference
OverlapCard
Prop
Type
OverlapCardsProps
Prop
Type
ScrollBehavior
Prop
Type
CardDimensions
Prop
Type