Catalog npm
PACKAGE EXPLORERView in registry

0.3.20-beta.11

npm

Synapse Reusable components library v2

Versions collected1
Direct dependencies39From release 0.3.19
Last observed20 Oct, 16:13 UTC

README

Current package documentation

synapse-ui

Reusable ui components for Synapse

Adding a new component

  1. Create your new component inside the src/ folder. You could place your component into any of the existing folders or create a new one.
  2. Create your style files inside its respective component folder.
  3. Create index.js file in the root of the new folder like so src/_your_folder/index.js.
  4. Import and export the new components inside index.js like so
    import Component1 from './Component1/Component1;
    import Component2 from './Component2/Component2;
    import Component3 from './Component3/Component3;
    
    export {
       Component1,
       Component2,
       Component3,
       {... moreComponents}
    };
    

Testing your new components

  1. Go to the package.json of synapse-ui and change the name attribute for synapse-ui-v2.
  2. Run yarn install.
  3. Run yarn build.
  4. Run yarn link.
  5. Then go to the project directory where you will use synapse-ui and run yarn link synapse-ui-v2.

Testing your components with Storybook

  1. Create a stories.jsx file along with your component
  2. Run yarn install
  3. Run yarn storybook
  4. Navigate to your component in Storybook dashboard
  5. For additional context, please refer to official Storybook documentation at https://www.learnstorybook.com/

Publishing

  1. Run yarn install.
  2. If you are not logged in. Run npm login. Make sure to count with a npm account.
  3. Run the npm publish command.
  4. !Done¡.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.3.19Registry latest19 Apr 202139

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 16:13 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c261dad982b88f1f9c182fb104b43300f08fe82cc346d9ce49f0dea3451c1959