0.0.51 • Published 7 days ago

@infobae/infobae-components v0.0.51

Weekly downloads
-
License
MIT
Repository
github
Last release
7 days ago

INFOBAE Components

Welcome to infobae-components!

This repository provides a collection of React UI components ready to use in your pnpm projects.

Getting Started

1. Installation:

pnpm add infobae-components

This command will install the infobae-components package and all of its peer dependencies in your local project's node_modules folder.

2. Build:

If you need to modify the source code of the components, you can rebuild them using the following command:

pnpm run build

This will generate a new dist folder with the compiled components.

Linking with a Local Project (DEVELOPMENT)

There are two ways to link infobae-components to a local project using pnpm:

  • 1. Using pnpm workspaces:

    This is the recommended approach for projects using pnpm workspaces. Add infobae-components as a dependency to your root package.json file:

    {
      "dependencies": {
        "infobae-components": "path/to/infobae-components"
      }
    }

    Then, run the following command to link the dependency:

    pnpm workspace infobae-components link
  • 2. (RECOMMENDED) Directly Linking

    In this folder package run:

    Bash

    pnpm link

    Then on your project folder run the next script

    Bash

    pnpm link infobae-components

!WARNING
💡 DON’T FORGET to unlink the packages in the reverse order that you linked them.

!CAUTION
⚠️⚠️⚠️ Duplicate React
This problem can also come up when you use npm link or an equivalent. In that case, your bundler might “see” two Reacts — one in application folder and one in your library folder. Assuming myapp and mylib are sibling folders, one possible fix is to run npm link ../myapp/node_modules/react from mylib. This should make the library use the application’s React copy.

Usage

Once linked, you can import the components directly into your React files:

JavaScript

import { MyComponent } from 'infobae-components';

function MyPage() {
  return (
    <MyComponent>
      {/* ... content ... */}
    </MyComponent>
  );
}

For detailed information about each component, please refer to the individual component files or consider adding a dedicated documentation website.

Contributing

We welcome your contributions to infobae-components! Please see the CONTRIBUTING.md file for more information.

License

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

0.0.51

7 days ago

0.0.50

17 days ago

0.0.48

18 days ago

0.0.49

18 days ago

0.0.47

22 days ago

0.0.45

23 days ago

0.0.46

23 days ago

0.0.44

25 days ago

0.0.43

29 days ago

0.0.42

1 month ago

0.0.41

2 months ago

0.0.40

2 months ago

0.0.38

2 months ago

0.0.39

2 months ago

0.0.37

3 months ago

0.0.36

3 months ago

0.0.35

3 months ago

0.0.34

3 months ago

0.0.33

3 months ago

0.0.32

3 months ago

0.0.30

3 months ago

0.0.31

3 months ago

0.0.29

3 months ago

0.0.28

4 months ago

0.0.26

4 months ago

0.0.27

4 months ago

0.0.25

4 months ago

0.0.24

5 months ago

0.0.22

5 months ago

0.0.23

5 months ago

0.0.20

5 months ago

0.0.21

5 months ago

0.0.17

5 months ago

0.0.18

5 months ago

0.0.19

5 months ago

0.0.15

5 months ago

0.0.14

5 months ago