# react-rbc-alert

> React Bootstrap Component - Alert

Latest version **0.1.10** (published 2021-03-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-rbc-alert
pnpm add react-rbc-alert
yarn add react-rbc-alert
bun add react-rbc-alert
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.10 |
| Published | 2021-03-28 |
| First published | 2021-03-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Natarajan K.G |
| Maintainers | rajiii4u |
| Keywords | react, alert, bootstrap |

## Links

- npm: https://www.npmjs.com/package/react-rbc-alert
- Repository: https://github.com/Rajiii4u/react-rbc-alert
- Homepage: https://github.com/Rajiii4u/react-rbc-alert#readme
- Issues: https://github.com/Rajiii4u/react-rbc-alert/issues
- npm.io page: https://npm.io/package/react-rbc-alert

## Dependencies (6)

- [react](https://npm.io/package/react.md) ^17.0.2
- [bootstrap](https://npm.io/package/bootstrap.md) ^4.6.0
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [react-scripts](https://npm.io/package/react-scripts.md) 4.0.3
- [react-bootstrap](https://npm.io/package/react-bootstrap.md) ^1.5.2

## 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

- 0.1.10 (latest) — 2021-03-28
- 0.1.9 — 2021-03-28
- 0.1.7 — 2021-03-28
- 0.1.5 — 2021-03-28
- 0.1.4 — 2021-03-28
- 0.1.3 — 2021-03-27
- 0.1.2 — 2021-03-27
- 0.1.1 — 2021-03-27
- 0.1.0 — 2021-03-27

## README

# React Bootstrap Component - Alert

A React Bootstrap Component - Alert with Minimal Props

## Installation

Run the following command to install this package.

```bash
# If you use npm:
npm install react-rbc-alert

# Or if you use Yarn:
yarn add react-rbc-alert
```

## Usage

Here is a example of react-rbc-alert being used in React with hooks:

```jsx
import React, { useState } from "react";
import Alert from "react-rbc-alert";

const App = () => {
  const [displayAlert, setDisplayAlert] = useState(true);

  return (
    <div>
      <Alert
        showAlert={displayAlert}
        showHeader
        headerContent='Test Heading'
        bodyContent='0123456789'
        variantOverride='primary'
        showDismissible
        handleOnClose={() => setDisplayAlert(false)}
      />
    </div>
  );
};
```

## Documentation

Coming soon!

## API

| Name            | Type       | Default | Description                                    |
| --------------- | ---------- | ------- | ---------------------------------------------- |
| showAlert       | boolean    | false   | Controls the visual state of the Alert.        |
| showHeader      | boolean    | false   | Controls the visual state of the Alert Header. |
| showDismissible | boolean    | false   | Renders a properly aligned dismiss button      |
| handleOnClose   | function() | -       | Callback fired when alert is closed.           |
| bodyContent     | string     | -       | Render Alert Body Content                      |
| headerContent   | string     | -       | Render Alert Header Content                    |
| variantOverride | string     | primary | The Alert visual variant                       |
| keyOverride     | number     | 0       | Render Alert Index                             |

# Connect with us

Follow us on [Twitter](https://twitter.com/rajiii4u)

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