{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "ecommerce-highlight-card-shadcnui", "type": "registry:component", "title": "Ecommerce Highlight Card", "description": "Product spotlight card with blurred border, bundle selector, and fulfillment details", "dependencies": [ "framer-motion", "react" ], "files": [ { "path": "@uitripled/react-shadcn/src/components/components/cards/shadcnui/ecommerce-highlight-card.tsx", "content": "\"use client\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\";\nimport { Separator } from \"@/components/ui/separator\";\nimport { AnimatePresence, motion, useReducedMotion } from \"framer-motion\";\nimport { Check, ShieldCheck, Sparkles, Star, Truck } from \"lucide-react\";\nimport { useState } from \"react\";\n\ntype Plan = {\n id: string;\n title: string;\n price: string;\n description: string;\n promise: string;\n};\n\nconst plans: Plan[] = [\n {\n id: \"essential\",\n title: \"Essential\",\n price: \"$48.00\",\n description:\n \"Everyday comfort with signature cushioning and durable materials.\",\n promise: \"Ships in 2 business days • 30-day returns\",\n },\n {\n id: \"plus\",\n title: \"Plus\",\n price: \"$68.00\",\n description:\n \"Upgraded foam footbed, recycled laces, and breathable knit upper.\",\n promise: \"Ships next business day • 45-day returns\",\n },\n {\n id: \"premium\",\n title: \"Premium\",\n price: \"$92.00\",\n description:\n \"Adaptive arch support and antimicrobial lining for long days on your feet.\",\n promise: \"Priority fulfillment • 60-day returns\",\n },\n];\n\nconst highlights = [\n {\n icon: Sparkles,\n label: \"Best Seller\",\n },\n {\n icon: ShieldCheck,\n label: \"2-year warranty\",\n },\n];\n\nexport function EcommerceHighlightCard() {\n const [activePlan, setActivePlan] = useState(plans[1]);\n const shouldReduceMotion = useReducedMotion();\n\n return (\n
\n \n \n \n\n \n \n Nimbus Collection\n \n
\n \n Nimbus Pace Runner\n \n \n Lightweight performance kicks engineered for all-day comfort and\n momentum.\n \n
\n
\n
\n {[0, 1, 2, 3, 4].map((star) => (\n \n ))}\n
\n 4.9 • 1,240 reviews\n
\n
\n\n \n
\n {highlights.map(({ icon: Icon, label }) => (\n \n \n {label}\n \n ))}\n
\n\n
\n \n Choose your bundle\n \n
\n {plans.map((plan) => {\n const isActive = plan.id === activePlan.id;\n return (\n setActivePlan(plan)}\n aria-pressed={isActive}\n className={`rounded-full border-border/60 px-4 py-2 text-sm font-medium transition-all ${\n isActive\n ? \"border-primary/40 bg-primary text-primary-foreground shadow-lg\"\n : \"bg-background/80 text-foreground hover:border-primary/30 hover:bg-muted\"\n }`}\n >\n {plan.title}\n \n );\n })}\n
\n
\n\n \n \n
\n
\n

\n {activePlan.title}\n

\n

\n {activePlan.price}\n

\n
\n \n \n Selected\n \n
\n

\n {activePlan.description}\n

\n

\n {activePlan.promise}\n

\n \n
\n\n \n\n
\n
\n \n Free express shipping on orders over $100\n
\n
\n \n Extended warranty included with every bundle\n
\n
\n
\n\n \n
\n

\n Arrives before Friday\n

\n

\n Checkout before 2PM local time\n

\n
\n \n
\n
\n \n
\n );\n}\n", "type": "registry:component", "target": "components/uitripled/ecommerce-highlight-card-shadcnui.tsx" } ] }