Expand description
A [Ratatui] widget to render charming playing cards in the terminal. Part of the tui-widgets suite by Joshka.

GitHub Repository · API Docs · Examples · Changelog · Contributing
§Usage
Create a Card and render it directly in a frame.
use tui_cards::{Card, Rank, Suit};
let card = Card::new(Rank::Ace, Suit::Spades);
frame.render_widget(&card, frame.area());§Demo
cargo run --example card§More widgets
For the full suite of widgets, see tui-widgets.
Structs§
- Card
- A playing card.
- Rank
Iter - An iterator over the variants of Rank
- Suit
Iter - An iterator over the variants of Suit