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 🙏

© 2024 – Pkg Stats / Ryan Hefner

anjrot-components

v2.0.0

Published

This project is a React component library created for a YouTube tutorial. It demonstrates how to build reusable UI components using React, TypeScript, and Tailwind CSS.

Downloads

1,154

Readme

React Component Library

This project is a React component library created for a YouTube tutorial. It demonstrates how to build reusable UI components using React, TypeScript, and Tailwind CSS.

🎥 YouTube Tutorial

This project was created as part of a YouTube tutorial. To learn how to build your own React component library step-by-step watch the video.

React Typescript: Crea una libreria de Componentes

🚀 Quick Start

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Run the development server:
    npm run storybook

🏗️ Install in Another Project

To use this library in another project, follow these steps:

Install the library

Add the library to your project as a dependency using npm or yarn:

npm install anjrot-components
# or
yarn add anjrot-components

🛠️ Tailwind CSS Setup

To use this library in your project, make sure Tailwind CSS processes the classes in the components provided by the library. Add the following line to the content section of your tailwind.config.js:

content: ["./node_modules/anjrot-components/**/*.{js,ts,jsx,tsx}"],

Import and use the components

Now you can import and use components from the library in your project. For example:

import { Button, Input, Stack } from "anjrot-components";

export default function MyComponent() {
  return (
    <div>
      <Button onClick={() => alert("Clicked!")}>Click Me</Button>
      <Input placeholder="Enter your text here" />
      <Stack gap={4}>
        <div>Item 1</div>
        <div>Item 2</div>
      </Stack>
    </div>
  );
}

Restart your development server after making these changes to ensure Tailwind CSS processes the classes correctly.

🧱 Components

This library includes the following components:

  • Button
  • Input
  • ValidatedInput
  • Stack
  • Text

Each component has its own story for Storybook, allowing you to view and interact with the components in isolation.

🛠️ Technologies Used

  • React
  • TypeScript
  • Vite
  • Tailwind CSS
  • Storybook

📚 Documentation

For detailed documentation on each component, please refer to the individual component files in the src directory.

🤝 Contributing

We welcome contributions! Please see our CONTRIBUTING.md for details on how to contribute to this project.

📜 License

This project is licensed under the LICENSE file in the root directory of this project.

📝 Changelog

For a detailed list of changes and version updates, please refer to our CHANGELOG.md.

🙏 Acknowledgements

Thank you to all the contributors who have helped make this project possible!

🛎️ Announcements

  • Will use this Library for our newest Video Tutorials.

  • Trigger upgrade version


Made with ❤️ for the YouTube community