0.5.4 • Published 8 years ago
react-vui-alerts v0.5.4
react-vui-alerts
React component for displaying alerts.
Installation
Install from NPM:
npm install react-vui-alerts
Install from Bower:
bower install react-vui-alerts
Usage
Import the style:
@import "bower_components/react-vui-alerts/alerts"; // or...
@import "node_modules/react-vui-alerts/alerts";
Require the component:
var Alerts = require('react-vui-alerts');
And then use the component as a container for your error message:
var AppComponent = React.createClass({
...
render: function() {
if (this.state.isError) {
return <Alerts.Error> some error content/view </Alerts.Error>;
} else {
return <SomeOtherView />;
}
},
...
});
Contributing
Code Style
This repository is configured with EditorConfig rules and contributions should make use of them. See the VUI Best Practices & Style Guide for more information.
0.5.4
8 years ago
0.5.3
9 years ago
0.5.2
9 years ago
0.5.1
9 years ago
0.5.0
9 years ago
0.4.0
9 years ago
0.3.0
9 years ago
0.2.2
9 years ago
0.2.1
9 years ago
0.2.0
9 years ago
0.1.4
9 years ago
0.1.3
9 years ago
0.1.2
9 years ago
0.1.1
9 years ago
0.1.0
9 years ago
0.0.4
9 years ago
0.0.3
9 years ago
0.0.2
9 years ago
0.0.1
9 years ago