Bangladesh

Payment method picker

bKash, Nagad, Rocket, Upay, card, cash, bank, cash on delivery. Cards, list or chips; fees beside each.

3 examples 1 animated · 1 Pro Code and Figma for each

Cards, with fees

List, every method

Chips

Examples#

Each one on its own: copy its code into your app, or copy it to Figma and paste it on the canvas as layers.

Cards with fees

For checkout: each method with its fee beside it.

List

Every method in a column: for a payment settings page.

Chips

Compact, for a filter or a small form.

Animated#

Motion that earns its place: free ones to copy now, and Pro ones whose code and Figma copy come with a Wavi Pro licence. They respect the visitor's reduced-motion setting.

Pay with bKash Pro

The amount, the PIN dots filling, a short progress and the transaction ID.

bKash payment

৳1,250.00

To Gulshan Parking · Invoice 1042

Enter your bKash PIN

Import#

Everything comes from the package root. The example above uses:

your-component.tsx
import { PaymentMethodPicker } from "@waveinno/ui";

Props#

Read from the source of this version, so they match the code exactly.

<PaymentMethodPicker>

src/components/ui/payment-method-picker.tsx
PropTypeDefaultDescription
valuestring—
defaultValuestring—
onValueChange(id: string) => void—
methods(PaymentMethodId | PaymentMethod)[]["bkash", "nagad", "card", "cash"]
feesPartial<Record<string, React.ReactNode>>—Beside each method: "No fee", "1.85%", "−৳50".
variant"cards" | "list" | "chips""cards"
disabledboolean—
aria-labelstring"Payment method"
classNamestring—

Install#

If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.

$ npm install @waveinno/ui