playing-card Web Component
playing-card
is a web component representing a standard French-suited playing card commonly used in casino games like poker.
Key features include:
- Generic: It is designed to be useable on any website
- Customizable: All the colors are customizable if the default red and black doesn't suit you
- Accessible: Treats the card as an image with alternative text detailing the value and suit
Originally made for a small game called Nimcard when I realized the card component could easily be extracted as its own reusable element.