Package Exports
- @hods/header
- @hods/header/dist/Header.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hods/header) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
HODS - Header
HODS' page header.
Using this package
First install the package into your project:
npm install -S @hods/headerThen use it in your code as follows:
import React, { createElement as h } from 'react';
import Header from '@hods/header';
export const MyComponent = props => (
<Header
accountHref="#/my-account"
navigation={[
{ href: '/styles', text: 'Styles', active: true },
{ href: '/components', text: 'Components' },
{ href: '/patterns', text: 'Patterns' },
{ href: '/resources', text: 'Resources' },
{ href: '/get-involved', text: 'Get involved' }
]}
title="Service name"
signOutHref="#/auth/sign-out"
username="User name"
/>
);
export default MyComponent;Working on this package
Before working on this package you must install its dependencies using the following command:
pnpm installTesting
npm testBuilding
npm run buildClean-up
npm run clean