@react-ag-components/header
v1.2.18
Published
header React component
Keywords
Readme
header
React header component for external web apps
Note: This header doesn't not yet include the menu or logged in user. But it will soon :v:
Usage
Install
npm i @react-ag-components/header --saveUse in your project
import Header from '@react-ag-components/header'<Header />Properties
| prop | Type | Note | | ------------- |:-------------:| -----:| | showInbox | boolean | inbox search visibility | | menu | object | ... | | abn | string | abn number | | userName | string | firstname + lastname | | logonId | string | their logon id, normally their email | | orgName | string | organisation name | | otherInfo | Object Array with field "label" and "value" | ["label": "labelVal", "value": "valueVal"] | | otherLink | Object Array with field "label" and "value" | ["label": "labelVal", "value": "/"] | | name | string | page heading | | searchArray | JSON Array | array to search on | | searchKey | string | "id"| | searchDisplayAttributes | array | ['id','status','date','destinationCountry'] |
Contributing
Get the repository
git clone https://github.com/alphillips/header.gitUpdate dependencies
npm installRun the project
npm startDeploy to npm
Build
npm run build -- --copy-files
Publish
npm publish --access public
