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

font-draggable-text

v2.1.2

Published

A lightweight React component to create draggable, customizable text elements for creative and interactive designs.

Downloads

383

Readme

Font Draggable Text

FontDraggableText is a React component that provied you a draggable text elements with various font styles. It leverages Tailwind CSS for styling and Framer Motion for animations. Looks amazing! Must Try once!

Installation

You can install the package via npm:

npm install font-draggable-text

Usage

( Sample Example )

  1. Import fonts to the index.css file

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton+SC&family=Edu+AU+VIC+WA+NT+Arrows:[email protected]&family=Jaro:[email protected]&family=Mochiy+Pop+P+One&family=Noto+Sans+Display:ital,wght@0,100..900;1,100..900&family=Noto+Sans+Mono:[email protected]&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Public+Sans:ital,wght@0,100..900;1,100..900&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&family=Yuji+Mai&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;
  1. Add Fonts to the Tailwind Configuration

you need to add the custom fonts to your tailwind.config.js file. Here is an example configuration:


/** @type {import('tailwindcss').Config} */
export default {
  content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
  theme: {
    extend: {
      fontFamily: {
        pop: "Poppins",
        int: "Inter",
        edu: "Edu AU VIC WA NT Arrows",
        mono: "Noto Sans Mono",
        notoSans: "Noto Sans Display",
        tinos: "Tinos",
        pOne: "Mochiy Pop P One",
        playfair: "Playfair",
        publicSans: "Public Sans",
        anton: "Anton SC",
        yugi: "Yuji Mai",
        jaro: "Jaro",
      },
    },
  },
  plugins: [],
};
  1. Pass Fonts Using Array to the Component

Finally, you need to pass the fonts as an array to the FontDraggableText component.


import FontDraggableText from "../../satendra-pkg/src/components/FontDraggableText";

function App() {
  const fonts = [
    "font-pop font-bold italic", // Poppins, bold, and italic
    "font-int font-light", // Inter, light
    "font-mono font-bold", // Noto Sans Mono, bold
    "font-notoSans font-medium", // Noto Sans Display, medium
    "font-tinos font-extrabold", // Tinos, extra-bold
    "font-playfair font-black", // Playfair, black (heaviest weight)
    "font-publicSans font-semibold", // Public Sans, semi-bold
    "font-anton uppercase font-bold", // Anton SC, bold, and uppercase
    "font-yugi font-medium italic", // Yuji Mai, medium, and italic
    "font-jaro font-thin", // Jaro, thin
  ];
  return (
    <div className="flex flex-col text-3xl tracking-tighter leading-[30px] font-bold items-center justify-center">
      <FontDraggableText
        words={["This", "is", "a", "Example", "Text"]}
        fonts={fonts}
      />
    </div>
  );
}

export default App;

Result

Props

| Prop | Type | Description | |------------|-------------------|------------------------------------------------------------------| | words | string[] | An array of strings to be displayed as draggable text (e.g., ["Example"]). | | className| string (optional)| A CSS class to style the component (e.g., "my-class"). | | fonts | string[] (optional) | An array of font names to customize the text font (e.g., ["Arial", "Helvetica"]). |

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Satendra Kumar Parteti

Contact

Ways to Contact:

  1. GitHub Issues: You can open an issue directly on this repository for bugs, feature requests, or general inquiries.

  2. Email: Reach out to us via email at:

  3. Social Media:

  4. Buy Me A Coffee:

    • Small Contibution: