Staaarter

Shipping Info Cards

A row of icon cards covering shipping, delivery, returns, and support promises. Drops in below a product page or cart to reassure shoppers before checkout.

By Staaarter Team
Ecommerce
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/shipping-info-cards.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/ecommerce/ecommerce7.tsx instead.

Usage

The file also exports ecommerce7Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Ecommerce7, ecommerce7Demo } from "@/components/blocks/ecommerce/ecommerce7";

export default function Page() {
  return <Ecommerce7 {...ecommerce7Demo} />;
}

Props

PropTypeDefaultDescription
headingstringnoneOptional heading above the card row.
itemsShippingInfoItem[][]The icon cards to render, in order.
classNamestringnoneExtra classes for the outer section element.

Types

type ShippingInfoItem = {
  icon: "truck" | "package" | "returns" | "support";
  title: string;
  description: string;
};

Behavior notes

  • Fully static and presentational: there are no click handlers or state anywhere in this block.
  • icon is a fixed string key mapped internally to a Lucide icon component, not a component or function value, so the whole block stays a plain server component.
  • The grid is fixed at up to 4 columns on large screens and wraps to 2 columns on smaller ones regardless of item count; passing more than 4 items wraps to a second row rather than shrinking the cards.