JSPM

  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q51928F
  • License MIT

Alert primitive component for real system.

Package Exports

  • @real-system/alert-primitive
  • @real-system/alert-primitive/lib/index.esm.js
  • @real-system/alert-primitive/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@real-system/alert-primitive) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@real-system/alert-primitive

Alert primitive component for real system.

npm version minified size

Usage

# install peer dependencies

# npm
$ npm install react react-dom 
# yarn
$ yarn add react react-dom 

# install alert-primitive

# npm
$ npm install @real-system/alert-primitive
# yarn
$ yarn add @real-system/alert-primitive

Code Example

import { AlertPrimitive } from '@real-system/alert-primitive';

const PoliteAlert = () => <AlertPrimitive>Alert primitive Content</AlertPrimitive>;
const AssertiveAlert = () => <AlertPrimitive type="assertive">Alert primitive Content</AlertPrimitive>;