Skip to content

shadcn.io is an independent project built on shadcn/ui

Loyalty Points Product Card Block for Solid

Three pantry tiles that each say how many points they earn, a balance band with a bar to Gold, and a Use points slider on the hamper that works out the discount, the price to pay and the new balance.

UI library: Ark UI

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

Show rewards on the products themselves with this loyalty points product card for Solid with Ark UI. A band over the tiles reads "Balance 2,480 points, Silver" with a thin bar and "520 to Gold". Three drawn pantry tiles each carry an "Earns N points" badge worked out from the price paid at 5 points a dollar; the hamper adds a Slider "Use points" from 0 to 2,000 in steps of 100, at 100 points to the dollar, and says "$12.00 off. Balance 1,280". Each tile has an outline "Add to bag" with an Undo. On a phone the tiles are a row you swipe. Guides mark the tiles. For shops with a points scheme.

FAQ

What is the points rule?

Typed constants: 5 points earned per dollar paid and 100 points per dollar off. The earned count on the hamper is worked out from the price after points, so using points lowers it.

Why does moving the slider take the hamper out of the bag?

So the price on the button is never different from the price on the tile. Press Add again after choosing the points.

What stays local, and how do I wire it for real?

The balance, the points used and the bag are page state; no points are spent. Nothing is stored, charged or sent. Read the balance from your rewards service, validate the points on the server and send them with the line item.

How does it look on a phone?

The tiles become a swipe row with the next one showing; the balance band stays above.

Is it accessible?

The slider is named, announces its value in points and responds to arrow keys. The tier bar is decorative; its words are in text. The status line announces each change.