Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@edx/frontend-component-site-header

Package Overview
Dependencies
Maintainers
11
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edx/frontend-component-site-header

A reusable React site header.

  • 2.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-88.89%
Maintainers
11
Weekly downloads
 
Created
Source

===== Frontend Component: Site Header

|Build Status| |Coveralls| |npm_version| |npm_downloads| |license| |semantic-release|

A reusable react site header component for edX.org

Usage

Install the component in your project:

npm i --save @edx/frontend-component-site-header

In your code:

.. code-block:: javascript

import { SiteHeader } from "@edx/frontend-component-site-header";

// ...code...

render() { return( <SiteHeader logo={Logo} logoDestination="https://edx.org" logoAltText="edX" mainMenu={[ { type: 'menu', href: '#', content: 'Courses', submenuContent: (

) }, { type: 'item', href: '#', content: 'Programs', }, { type: 'item', href: '#', content: 'Schools & Partners', }, ]} loggedIn={this.state.loggedIn} username={this.state.loggedIn ? 'username' : null} avatar={this.state.loggedIn ? Logo : null} userMenu={[ { type: 'item', href: '#', content: 'Dashboard', }, { type: 'item', href: '#', content: 'Profile', }, { type: 'item', href: '#', content: 'Account Settings', }, { type: 'item', href: '#', content: 'Help', }, { type: 'item', href: '#', content: 'Logout', }, ]} loggedOutItems={[ { type: 'item', href: '#', content: 'Login' }, { type: 'item', href: '#', content: 'Sign Up' }, ]} /> ) }

Development

To run this component from the example app, clone this repo, run npm install, and then run npm start.

Build the Component Only

npm run build

Build the example app.

npm run build-example

.. |Build Status| image:: https://api.travis-ci.org/edx/frontend-component-site-header.svg?branch=master :target: https://travis-ci.org/edx/frontend-component-site-header .. |Coveralls| image:: https://img.shields.io/coveralls/edx/frontend-component-site-header.svg?branch=master :target: https://coveralls.io/github/edx/frontend-component-site-header .. |npm_version| image:: https://img.shields.io/npm/v/@edx/frontend-component-site-header.svg :target: @edx/frontend-component-site-header .. |npm_downloads| image:: https://img.shields.io/npm/dt/@edx/frontend-component-site-header.svg :target: @edx/frontend-component-site-header .. |license| image:: https://img.shields.io/npm/l/@edx/frontend-component-site-header.svg :target: @edx/frontend-component-site-header .. |semantic-release| image:: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg :target: https://github.com/semantic-release/semantic-release

FAQs

Package last updated on 11 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc