1.1.2 • Published 3 years ago

perso-feed-widget v1.1.2

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Feed widget

This widget is used to present insights and trackers to a client, in both a feed mode and a integrated mode.

Installation

Use npm to install the library dependencies

npm install

Usage

Adding it to your project

import PersoFeedWidget from 'perso-feed-widget';

function App() {
  return (
    <PersoFeedWidget {...props} />
  );
}

Bundling changes while in development mode (optional):

npm run build:watch

Props

NameDescriptionTypeRequired
modeWhich mode the component should render'FEED_MODE' | 'INTEGRATED_MODE'
menuPropsRender props to pass to Menu componentObject
menuProps.isOpenTrue if the menu is openBoolean
menuProps.handleSetModeFunction that handles the mode changeFunction
menuProps.handleSetIsOpenFunction that handles the opening and closing of the menuFunction

Publishing:

  1. Alter your package.json's version (Refer to semantic versioning)
  2. Run npm login command to log into the registry.
  3. Run npm publish command
1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago