import { CreditCard } from '@hanzo/ui'
A dark plate with a placeholder number, holder name and expiry.
export function Default() {return <CreditCard />}
Every field set, including the CVV badge in the corner.
export function FilledIn() {return (<CreditCard number="4111 1111 1111 1111" name="ADA LOVELACE" expiry="09/30" cvv="123" />)}
A bordered surface instead of the dark plate, for a page that already carries its own color.
export function Minimal() {return (<CreditCard variant="minimal" number="5500 0000 0000 0004" name="GRACE HOPPER" expiry="12/29" />)}
Both variants at once, to compare the two treatments.
export function SideBySide() {return (<XStack flexWrap="wrap" gap="$4"><YStack width={320}><CreditCard name="ALAN TURING" expiry="06/28" /></YStack><YStack width={320}><CreditCard variant="minimal" name="ALAN TURING" expiry="06/28" /></YStack></XStack>)}
export type CreditCardVariant = 'default' | 'minimal'
export type CreditCardProps = Omit<ComponentProps<typeof Frame>, 'variant' | 'children'> & {/** The card number, formatted or masked by the caller. */number?: string/** The name printed on the card. */name?: string/** MM/YY expiry, printed as given. */expiry?: string/** Security code, shown only when set. */cvv?: stringvariant?: CreditCardVariant | null}