0.0.65 • Published 12 months ago

@infobae/infobae-components v0.0.65

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months 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.64

1 year ago

0.0.65

12 months ago

0.0.62

1 year ago

0.0.63

1 year ago

0.0.60

1 year ago

0.0.61

1 year ago

0.0.59

1 year ago

0.0.55

1 year ago

0.0.56

1 year ago

0.0.57

1 year ago

0.0.58

1 year ago

0.0.52

1 year ago

0.0.53

1 year ago

0.0.54

1 year ago

0.0.51

1 year ago

0.0.50

1 year ago

0.0.48

1 year ago

0.0.49

1 year ago

0.0.47

1 year ago

0.0.45

1 year ago

0.0.46

1 year ago

0.0.44

1 year ago

0.0.43

1 year ago

0.0.42

1 year ago

0.0.41

1 year ago

0.0.40

1 year ago

0.0.38

1 year ago

0.0.39

1 year ago

0.0.37

2 years ago

0.0.36

2 years ago

0.0.35

2 years ago

0.0.34

2 years ago

0.0.33

2 years ago

0.0.32

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago