/frontend-component-header-edx

Primary LanguageJavaScriptGNU Affero General Public License v3.0AGPL-3.0

frontend-component-header-edx

npm_version npm_downloads license

This is the standard edX header for use in React applications. It has two exports:

  • default: The Header Component
  • messages: for i18n in the form of { locale: { key: translatedString } }

Usage

import Header, { messages } from '@edx/frontend-component-header-edx';

Development

  • Install requirements npm install
  • Install peer dependencies npm install @edx/frontend-analytics @edx/frontend-base @edx/frontend-i18n prop-types react
  • Start the example server npm start
  • Visit http://localhost:1234