Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Top Bar Payment Methods Banner Block for React

A checkout trust strip split by a divider: outline chips for the ways to pay at the start, a lock and a secure-checkout note with a link at the end.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A trust strip for React with Base UI, the line that reassures a shopper before they pay. For Russetlab, an online checkout service, four outline chips name the ways to pay (Cards, Bank transfer, Wallets and Invoice) at the start of a faintly tinted band, and at the end a lock, "Secure checkout over TLS 1.3" and an underlined link lead to every method. A vertical divider splits the two parts and starts at a plus mark on the page's top rule, so it belongs to the same drafting lines as the blocks around it. The chips are a real list with generic icons, never a payment company's logo. The strip is 44 pixels tall on a desktop; on a phone the two parts stack under a hairline, the chips drop their icons, "Bank transfer" reads "Bank" and the note is shortened, so each takes one line at 320 pixels. It's built from Badge and Guides with Lucide icons and your theme's tokens for every colour, and it follows the theme. For checkout pages, carts and pricing pages that need one honest line about how people pay.

FAQ

How do I change the accepted methods?

Edit METHODS at the top of the file: each entry is an icon and a label. Four chips fit on one line beside the note from the medium breakpoint (the icons appear from the large one); more will wrap the chips to a second line, so keep the list to the methods that matter and let "See all methods" carry the rest.

Why generic chips and not card logos?

Payment marks are trademarks with their own usage rules, and a block shouldn't ship them. The chips say what kind of method it is (cards, a bank transfer, a wallet, an invoice), which is what most shoppers look for. If your agreement lets you show brand marks, put them in the chips' place; keep each as a list item with its name as text for screen readers.

Is the TLS claim real?

It's copy for the demo: replace "TLS 1.3" with what your checkout really guarantees, or drop that part and keep "Secure checkout". On a phone the words "over TLS 1.3" are hidden to keep the note on one line, and the number sits in a bdi so it keeps its order in right-to-left pages.

How is the divider drawn?

The note's cell has a start-side border and a Guides layer that draws only the plus mark at its top corner, so the divider meets the page's top rule at a mark. Under the medium breakpoint the border goes and a second Guides layer draws a hairline with marks between the stacked parts instead. The block draws no bottom rule: the next block's top rule is its bottom edge.

How does it fit at 320 pixels?

The two parts stack, each one line: the four chips without icons ("Bank transfer" shortens to "Bank" for sighted users; screen readers still hear the whole name), then the lock, "Secure checkout" and the link. Nothing scrolls sideways, and in a right-to-left page the order mirrors.

  • Pro

    A trust strip for a file-transfer service: six claims in still, hairline-split cells from the medium breakpoint, and the same six on a pausable marquee below it.

  • Pro

    A centred refund guarantee for a notebook app: a corner ribbon reading Secured, a shield, a heading, one sentence, the 30-day window drawn as a bar of thirty cells, and fine print under a rule.

  • Pro

    A delivery check in a slim bar: type a postcode, press Check, and the bar answers with the delivery time in place.

  • Pro

    A centred rating strip: five stars drawn filled to 4.8, the score with its review count, and a link to leave a review.

  • Pro

    Payment Method Billing

    Payment and invoices

    Payment methods in app settings: the card on file with an expiry warning, a backup bank account, a button that sets the default, and a dialog that checks and updates the card.

  • Pro

    A top bar for a notes app that teases its annual price: the percentage off worked out from the two prices, the monthly price struck through, the annual one beside it and an Upgrade link.