@ngocnn/react-material-alert

1.0.1 • Public • Published

react-material-alert

A ReactJS alert component built on Material UI

NPM JavaScript Style Guide Material-UI

Demo

https://ngocnn1104.github.io/react-material-alert/

Install

npm install --save @ngocnn/react-material-alert

Usage

import React, { Component } from 'react'

import MaterialAlert from '@ngocnn/react-material-alert'

class Example extends Component {
  render () {
    return (
      <MaterialAlert text='This is a success alert' type='success' />
      <MaterialAlert text='This is a warning alert' type='warning' />
      <MaterialAlert text='This is an error alert' type='error' />
    )
  }
}

License

MIT © ngocnn1104

Readme

Keywords

none

Package Sidebar

Install

npm i @ngocnn/react-material-alert

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

20.4 MB

Total Files

6

Last publish

Collaborators

  • ngocnn