1.0.2 • Published 9 years ago

zooid-ui-alerts v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

zooid-ui-alerts

React component for messages & alerts.

Install

npm install --save zooid-ui-alerts

Props

PropTypeDefaultDescription
childrennodeBody of your alert. Pass in html.
classNamestringAdditional css classes for your alert
dismissiblebooleanDetermines whether to render 'dismiss' button
typestring'info'What kind of alert: 'info', 'warning', 'error', or 'success'

Example

import React, { Component } from 'react'
import Alert from 'zooid-ui-alerts'

export default class App extends Component {
  render() {
    return <div>
      <h1>App</h1>
      <Alert dismissible={true} type='warning'>
        <div>
          This is a warning message
        </div>
      </Alert>
    </div>
  }
}
1.0.2

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago