# elr-scss-alerts

> a scss mixin for dismissible alerts

Latest version **0.1.12** (published 2021-12-13) · SEE LICENSE IN LICENSE.md license · 0 weekly downloads

## Install

```sh
npm install elr-scss-alerts
pnpm add elr-scss-alerts
yarn add elr-scss-alerts
bun add elr-scss-alerts
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.12 |
| Published | 2021-12-13 |
| First published | 2017-10-29 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE.md |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 342.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Elizabeth Rogers |
| Maintainers | beth_rogers465 |
| Keywords | sass, css, mixins, alerts |

## Links

- npm: https://www.npmjs.com/package/elr-scss-alerts
- Repository: https://github.com/Beth3346/elr-scss-alerts
- Issues: https://github.com/Beth3346/elr-scss-alerts/issues
- npm.io page: https://npm.io/package/elr-scss-alerts

## Dependencies (2)

- [elr-scss-config](https://npm.io/package/elr-scss-config.md) ^1.1.2
- [elr-scss-functions](https://npm.io/package/elr-scss-functions.md) 1.1.6

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.1.12 (latest) — 2021-12-13
- 0.1.11 — 2021-11-23
- 0.1.10 — 2021-11-14
- 0.1.9 — 2021-11-13
- 0.1.8 — 2021-11-11
- 0.1.7 — 2021-11-02
- 0.1.6 — 2021-11-02
- 0.1.5 — 2021-10-31
- 0.1.4 — 2019-02-07
- 0.1.3 — 2019-02-07
- 0.1.1 — 2019-02-07
- 0.1.0 — 2018-04-29
- 0.0.8 — 2017-11-11
- 0.0.7 — 2017-11-11
- 0.0.6 — 2017-11-11
- … 1 more at https://npm.io/package/elr-scss-alerts/versions

## README

# Alert Notifications

[![npm version](http://img.shields.io/npm/v/elr-scss-alerts.svg)](https://www.npmjs.org/package/elr-scss-alerts)
[![CI](https://github.com/Beth3346/elr-scss-alerts/actions/workflows/node.js.yml/badge.svg)](https://github.com/Beth3346/elr-scss-alerts/actions/workflows/node.js.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![npm](https://img.shields.io/npm/dm/elr-scss-alerts.svg?style=flat)](https://npmjs.com/package/elr-scss-alerts)
[![last commit](https://img.shields.io/github/last-commit/Beth3346/elr-scss-alerts.svg)](https://github.com/Beth3346/elr-scss-alerts)
[![Netlify Status](https://api.netlify.com/api/v1/badges/9b1511b6-7886-4117-83e5-cf11fd3e6f35/deploy-status)](https://app.netlify.com/sites/elr-alerts/deploys)

scss mixin for alerts

This package includes some JavaScript and HTML for demo purposes. It's intended for use with a library or framework such as React or Vue. It's up to you to build the HTML and JavaScript.

[View Demo](https://elr-alerts.netlify.app/)

## Screenshots

![screenshot](./src/screenshot.png)

## Installation

Download node at [nodejs.org](http://nodejs.org) and install it, if you haven't already.

```sh
npm install elr-scss-alerts --save
```

or

```sh
yarn add elr-scss-alerts
```

## Implementation

### Scss

```scss
@import "elr-scss-alerts";

.alert {
  @include elr-alert;
}
```

```scss
@import "elr-scss-alerts";

.alert-info {
  @include elr-alert-context(
    $config: (
      type: info,
    )
  );
}
```

```scss
@import "elr-scss-alerts";

.alert-danger {
  @include elr-alert-context(
    $config: (
      type: danger,
    )
  );
}
```

```scss
@import "elr-scss-alerts";

.alert-warning {
  @include elr-alert-context(
    $config: (
      type: warning,
    )
  );
}
```

```scss
@import "elr-scss-alerts";

.alert-success {
  @include elr-alert-context(
    $config: (
      type: success,
    )
  );
}
```

```scss
@import "elr-scss-alerts";

.alert-muted {
  @include elr-alert-context(
    $config: (
      type: muted,
    )
  );
}
```

### HTML

```html
<div class="alert js-alert">
  <button class="button-close js-button-close">&times;</button>
  <span class="icon">
    <i class="fa fa-info"></i>
  </span>
  <div>
    <h3 class="notification-heading">This Is a Heading</h3>
    <p>
      Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sed aut
      provident harum debitis consequuntur deserunt doloremque aperiam quae
      quasi expedita.
    </p>
    <div class="button-holder">
      <a href="#">View Issue</a>
      <button class="js-button-close">Dismiss</button>
    </div>
  </div>
</div>
```

## Road Map

- add mixin for toast notifications
- add mixin for notifications with overlay

## License

SEE LICENSE IN LICENSE.md

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