
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@edx/frontend-component-site-header
Advanced tools
|Build Status| |Coveralls| |npm_version| |npm_downloads| |license| |semantic-release|
A reusable react site header component for edX.org
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' }, ]} /> ) }To run this component from the example app, clone this repo,
run npm install
, and then run npm start
.
npm run build
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
A reusable React site header.
The npm package @edx/frontend-component-site-header receives a total of 1 weekly downloads. As such, @edx/frontend-component-site-header popularity was classified as not popular.
We found that @edx/frontend-component-site-header demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.