# react-classification-banner

> A React component for Automatically coloring banners for the top and bottom of a webpage that display the classification level.

Latest version **3.0.27** (published 2023-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-classification-banner
pnpm add react-classification-banner
yarn add react-classification-banner
bun add react-classification-banner
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.27 |
| Published | 2023-04-04 |
| First published | 2022-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | oocaz |
| Keywords | react, classification, secret, banners |

## Links

- npm: https://www.npmjs.com/package/react-classification-banner
- Repository: https://github.com/oocaz/react-classification-banner
- Homepage: http://github.com/oocaz/react-classification-banner#readme
- Issues: https://github.com/oocaz/react-classification-banner/issues
- npm.io page: https://npm.io/package/react-classification-banner

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^18.2.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.0.27 (latest) — 2023-04-04
- 3.0.26 — 2023-04-04
- 3.0.25 — 2023-04-04
- 3.0.24 — 2023-04-04
- 3.0.23 — 2023-04-04
- 3.0.22 — 2023-04-04
- 3.0.21 — 2023-04-04
- 3.0.20 — 2023-04-04
- 3.0.19 — 2023-04-04
- 3.0.18 — 2023-04-04
- 3.0.17 — 2023-04-04
- 3.0.16 — 2023-04-04
- 3.0.15 — 2023-04-04
- 3.0.14 — 2023-04-04
- 3.0.13 — 2023-04-04
- … 86 more at https://npm.io/package/react-classification-banner/versions

## README

# REACT-CLASSIFICATION-BANNER

Basic Component for rendering a classification banner in react as a header and a footer that floats over everything.

# Basic Use

Use like a normal React Component with the only specifier needed being the classifiaction variable set to the text values of "unclassified", "confidential", "cui", "secret", "topsecret", or "topsecret_sci".

## Install

```bash
npm install --save 'react-classification-banner'
```

# Update! No more 25px margin spacers are required.

## Basic Usage (usually in your index.js, then it renders over everything.)

```js
import React from "react";
import ClassificationBanner from "react-classification-banner";

function myCoolExample() {
  return (
    <ClassificationBanner classification="unclassified" />
    <App />
  );
}

export default myCoolExample;
```

The colors are automatic and if you enter an invalid value the banner will be black with red text

# Downloading and Building locally

You will need to run the `npm run build` command and then run the `npm run build:cjs` command and then you should be good to go.

## ! Please note ! The Banner will float over your other content and you will need to add a spacer of 25 pixels if you want all of your content to be seen!

Please feel free to comment of go to the Github Repo and submit an issue if you have a question or would like to see additional functionality.

## Additional info, the build will only work on Linux or git bash rn, working on fix

### Github Link:

(https://github.com/OOCAZ/react-classification-banner)

### I Take big inspiration from @mobdata

Go check out their stuff: https://github.com/mobdata# classification-banner

## License

`react-classification-banner` is released under the MIT license.

---
_Source: https://npm.io/package/react-classification-banner · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
