@hnordt/reax-alertdeprecated

Bootstrap Alert component for React

Usage no npm install needed!

<script type="module">
  import hnordtReaxAlert from 'https://cdn.skypack.dev/@hnordt/reax-alert';
</script>

README

Reax Alert

Bootstrap Alert component for React

npm version

PropTypes

{
  type: PropTypes.oneOf([
    'success',
    'info',
    'warning',
    'danger'
  ]).isRequired,
  children: PropTypes.node.isRequired
}

Usage

npm install --save @hnordt/reax-alert
import React from 'react';
import Alert from '@hnordt/reax-alert';

const Foo = () => (
  <Alert type="success">
    Foo bar!
  </Alert>
);

export default Foo;