Product Card

PreviousNext

A product card component

Docs
shadcnui-blockscomponent

Preview

Loading preview…
components/customized/card/card-07.tsx
import { Button } from "@/registry/ui/button";
import { Card, CardContent, CardFooter, CardHeader } from "@/registry/ui/card";
import { ArrowRight, Shapes } from "lucide-react";
import React from "react";

const ProductCard = () => {
  return (
    <Card className="max-w-xs shadow-none gap-0 pt-0">
      <CardHeader className="py-4 px-5 flex flex-row items-center gap-3 font-semibold">
        <div className="h-8 w-8 flex items-center justify-center bg-primary text-primary-foreground rounded-full">
          <Shapes className="h-5 w-5" />
        </div>
        Shadcn UI Blocks
      </CardHeader>

      <CardContent className="mt-1 text-[15px] text-muted-foreground px-5">
        <p>
          Explore a collection of Shadcn UI blocks and components, ready to
          preview and copy.
        </p>
        <div className="mt-5 w-full aspect-video bg-muted rounded-xl" />
      </CardContent>

      <CardFooter className="mt-6">
        <Button className="/blocks">
          Explore Blocks <ArrowRight />
        </Button>
      </CardFooter>
    </Card>
  );
};

export default ProductCard;

Installation

npx shadcn@latest add @shadcnui-blocks/card-07

Usage

import { Card07 } from "@/components/card-07"
<Card07 />