Skip to content

React-based component to display banners at the top and bottom of the page, following IC-defined rules.

License

Notifications You must be signed in to change notification settings

mobdata/classification-banner

Repository files navigation

classification-banner

A simple React component to put a classification banner at the top and bottom of an app.

Features

Provides the generally accepted colors for unclassified, confidential, secret, top secret and top secret//sci markings.

Install

npm install --save '@mobdata/classification-banner'

Usage

import React, { Component } from 'react';
import ClassificationBanner from '@mobdata/classification-banner';
import logo from './logo.svg';
import './App.css';

class App extends Component {
  render() {
    return (
      <div className="App">
        <ClassificationBanner classification="unclassified"/>
        <div style={{ paddingTop: '100px' }}>
          <header className="App-header">
            <img src={logo} className="App-logo" alt="logo" />
            <h1 className="App-title">Welcome to React</h1>
          </header>
          <p className="App-intro">
            To get started, edit <code>src/App.js</code> and save to reload.
          </p>
        </div>
      </div>
    );
  }
}

export default App;

License

classification-banner is released under the MIT license.

About

React-based component to display banners at the top and bottom of the page, following IC-defined rules.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published