Tally UI

PaymentMethodCard

Selectable payment method card with label and optional icon

Import

import { PaymentMethodCard } from '@tallyui/components';

Usage

<PaymentMethodCard
  label="Credit Card"
  selected={isSelected}
  onPress={() => selectMethod('card')}
/>

A pressable card that represents a single payment method. When selected, it shows a primary border, highlighted text, and a check mark indicator. Typically used inside a PaymentSelector, but works fine standalone.

Props

PropTypeDefaultDescription
labelstringrequiredPayment method name
selectedbooleanrequiredWhether this method is selected
onPress() => voidrequiredCalled on tap
iconReactNode---Optional icon rendered before the label
classNamestring---Override card styles

Selected classes: border-primary bg-primary/5 with text-primary Unselected classes: border-border bg-surface with text-foreground

Live demo

On this page