VOOZH about

URL: https://www.nuget.org/packages/Soenneker.Blazor.CreditCards/

⇱ NuGet Gallery | Soenneker.Blazor.CreditCards 4.0.474




👁 Image
Soenneker.Blazor.CreditCards 4.0.474

Prefix Reserved
dotnet add package Soenneker.Blazor.CreditCards --version 4.0.474
 
 
NuGet\Install-Package Soenneker.Blazor.CreditCards -Version 4.0.474
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Blazor.CreditCards" Version="4.0.474" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.CreditCards" Version="4.0.474" />
 
Directory.Packages.props
<PackageReference Include="Soenneker.Blazor.CreditCards" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Blazor.CreditCards --version 4.0.474
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Blazor.CreditCards, 4.0.474"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Blazor.CreditCards@4.0.474
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Blazor.CreditCards&version=4.0.474
 
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.CreditCards&version=4.0.474
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image

👁 alternate text is missing from this package README image
Soenneker.Blazor.CreditCards

A beautiful, animated credit card component with real-time updates and brand detection

Installation

dotnet add package Soenneker.Blazor.CreditCards

? Features

  • ?? Live-updating, animated card rendering
  • ?? Automatic card type detection (Visa, Mastercard, Amex, etc.)
  • ??? Built-in front/back flip animation
  • ??? Click event support for interactive behaviors
  • ?? Placeholder logic for empty cards
  • ?? Perfect for forms, payment demos, and simulations

?? Installation

dotnet add package Soenneker.Blazor.CreditCards

??? Usage

1. Register the interop service

builder.Services.AddCreditCardsInteropAsScoped();

2. Add the component

<CreditCard CardNumber="@CardNumber"
 CardHolderName="@CardHolderName"
 ExpiryDate="@ExpiryDate"
 Cvc="@Cvc"
 FlipEnabled="true"
 OnClick="HandleCardClick"
 @ref="_creditCard" />

3. Handle click events (optional)

private async Task HandleCardClick(MouseEventArgs args)
{
 // Example: Flip the card when clicked
 _creditCard?.Flip();
 
 // Or perform any other action
 Console.WriteLine($"Card clicked at: {args.ClientX}, {args.ClientY}");
}

4. Control flip functionality


<CreditCard FlipEnabled="false" ... />


<CreditCard FlipEnabled="true" ... />

FlipEnabled Parameter:

  • true (default): Card can be flipped by clicking or programmatically
  • false: Disables flip functionality, cursor changes to default, and Flip() method does nothing

5. Programmatic card control

// Flip the card programmatically
_creditCard?.Flip();

// Set last 4 digits only (for saved cards)
await _creditCard?.SetLast4("1234", "visa");

// Reset to full input mode
_creditCard?.ResetCardDetection();
Product Versions Compatible and additional computed target framework versions.
.NET net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Blazor.CreditCards:

Package Downloads
Soenneker.Quark.Suite

Shadcn-powered Blazor UI, refined and modular.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.474 0 6/19/2026
4.0.472 0 6/19/2026
4.0.471 0 6/18/2026
4.0.470 38 6/18/2026
4.0.469 337 6/17/2026
4.0.468 49 6/17/2026
4.0.467 65 6/17/2026
4.0.465 76 6/16/2026
4.0.463 90 6/16/2026
4.0.462 1,466 6/13/2026
4.0.461 96 6/13/2026
4.0.459 794 6/10/2026
4.0.458 88 6/10/2026
4.0.456 91 6/9/2026
4.0.453 91 6/9/2026
4.0.452 1,366 6/9/2026
4.0.451 478 6/7/2026
4.0.450 107 6/7/2026
4.0.449 95 6/6/2026
4.0.447 94 6/6/2026
Loading failed

Update dependency Soenneker.Asyncs.Initializers to 4.0.58 (#1423)