0.3.14 • Published 2 years ago

hc-inbox-navigation v0.3.14

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
2 years ago

About

HeaderBar component is a react re-usable react component for the top navigation bar of a website. HeaderBar component accepts some props through which we can customize & dynamic navigation bar for a website.

Invite People modal component interact with the application, but without jumping to a new page and interrupting the user's workflow.

Usage

Storybook

Dependencies

Install react fontawsome using the following command:

npm i --save @fortawesome/fontawesome-svg-core

npm install --save @fortawesome/free-regular-svg-icons

Setup

  1. Install the HeaderBar component.
npm install hc-nav-bar --save
  1. Import the HeaderBar.
import HeaderBar from "hc-nav-bar";
  1. Mount the HeaderBar component on the DOM
ReactDOM.render(<HeaderBar />, document.getElementById("root"));
  1. Run the App
npm start

Setup for running the development version

  1. Open the index.js file & Uncomment the "Development code" part & comment on the "Production Code" part.

  2. Run npm start.

Command for running the test cases

npm test -- --coverage

Props of HeaderBar component

PropsTypeDescription
isHeaderStickybooleanSet the header sticky
domainNamestringDomain Name of your website like cankart, boxkit, xyz, etc
globalQuerystringValue of Global search bar
profileImageSrcstringImage source link of profile image
statusColorstringColor which indicates the status of the profile where status can be online, offline, away, etc
isGlobalSearchAllowbooleanEnable the global search bar for searching the whole website
isSettingsBtnAllowbooleanEnable the dedicated settings button
pageNamestringName of the current page
allowPageHeaderbooleanToogle the Page Header's display of HeaderBar component
onGlobalQueryChangefunctionFunction for handling the search query. It provides the value of the globalQuery through its parameter
organizationnamestringName of the Organization
organizationIdstringid of organization