npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-quizlet-flashcard

v4.0.22

Published

Simple quizlet like flashcard

Readme

react-quizlet-flashcard

A simple, responsive, and customizable flashcard component library for React, inspired by Quizlet. Create interactive single flashcards or decks with smooth animations and TypeScript support.

NPM Version

| react-quizlet-flashcard | Quizlet's flashcard component | | :------------------------------------------------: | :------------------------------------------: | | | |

✨ Features

  • Single Flashcard: Use the Flashcard component for individual cards with flip animations.
  • Flashcard Deck: Use the FlashcardArray component to navigate through multiple cards with progress tracking.
  • Customizable: Style cards with CSS properties, support for JSX/HTML content, and configurable flip directions.
  • TypeScript Support: Fully typed for type-safe development.
  • Responsive Design: Adapts to various screen sizes with customizable styles.
  • Accessibility: Includes ARIA attributes for screen reader compatibility.

Demo

Explore the full documentation and live demos at react-quizlet-flashcard website.

Installation

npm install react-quizlet-flashcard

or

yarn add react-quizlet-flashcard

Usage

FlashcardArray Example

import { FlashcardArray } from "react-quizlet-flashcard";
import "react-quizlet-flashcard/dist/index.css";

const deck = [
  {
    id: 1,
    front: { html: <div>What is the capital of Alaska?</div> },
    back: { html: <div>Juneau</div> },
  },
  {
    id: 2,
    front: { html: <div>What is the capital of California?</div> },
    back: { html: <div>Sacramento</div> },
  },
];

function App() {
  return <FlashcardArray deck={deck} />;
}

Flashcard Example

import { Flashcard } from "react-quizlet-flashcard";
import "react-quizlet-flashcard/dist/index.css";

function App() {
  return (
    <Flashcard
      front={{ html: <h1>Front</h1> }}
      back={{ html: <h1>Back</h1> }}
    />
  );
}

Documentation

Visit https://flashcard.abs.moe for detailed documentation, including:

  • Props for Flashcard and FlashcardArray components.
  • Usage of useFlashcard and useFlashcardArray hooks.
  • Customization options and accessibility features.

Contributing

Contributions are welcome! Check out the issues page on GitHub to report bugs or suggest features. Give us a ⭐️ if you find this project helpful!

License

This project is licensed under the MIT License.

Contribution Guide

Take a look at the Contribution Guide for detailed instructions on how to contribute to the project, including setting up the development environment, making changes, and testing your contributions.

TODO

  • [ ] Flashcard array needs a new feature to delete and add cards dynamically. That should also update the cardsInDisplay state and current card index.
  • [x] When cycle is enabled after the array was initialized, at the start of the flashcard array (1/7), it breaks.
  • [x] Write the component with typescript.
  • [X] Write Unit tests.
  • [x] More finer control.
  • [x] Write the styles with Sass