Staaarter

Payment Methods Display

A grid of plain-text payment option tiles: credit card brand tiles, digital wallet tiles, and a bank transfer tile, each with a generic Lucide icon. No selection state, just a checkout or footer trust display listing which payment methods are accepted.

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/payment-methods-display.json

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

Usage

The file also exports ecommerce33Demo, 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 { Ecommerce33, ecommerce33Demo } from "@/components/blocks/ecommerce/ecommerce33";

export default function Page() {
  return <Ecommerce33 {...ecommerce33Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"Accepted payment methods"Heading above the tile grid.
descriptionstringnoneShort supporting line under the heading.
cardBrandsstring[][]Credit card brand names, each rendered as a plain-text tile with a CreditCard icon.
walletsstring[][]Digital wallet names, each rendered as a plain-text tile with a Wallet icon.
bankTransferBankTransferOptionnoneA single bank transfer tile with a Landmark icon; omitted entirely when not set.
classNamestringnoneExtra classes for the outer section element.

Types

type BankTransferOption = {
  label: string;
  description: string;
};

Behavior notes

  • Fully static: no tile is selectable and there are no click handlers anywhere in this block.
  • Card brand and wallet names ("Visa", "Mastercard", "Apple Pay", "Google Pay", etc.) are rendered as plain styled text next to a generic Lucide icon, never as a trademarked logo graphic or brand-specific SVG.
  • cardBrands, wallets, and bankTransfer are independent: any of the three can be empty/omitted and the grid simply renders fewer tiles, down to zero.
  • The heading/description block only renders when at least one of the two is set.