πŸš€ Socket Launch Week πŸš€ Day 5: Introducing Socket Fix.Learn More β†’
Socket
Sign inDemoInstall
Socket

anjrot-components

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anjrot-components

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.

2.1.4
latest
npm
Version published
Weekly downloads
15
-46.43%
Maintainers
1
Weekly downloads
Β 
Created
Source

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

  • Clone the repository
  • Install dependencies:
    npm install
    
  • 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

FAQs

Package last updated on 24 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts