zooid-ui-alerts

Alerts

zooid-ui-alerts has been moved to zooid-alert
Last updated 4 years ago by octoblu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install zooid-ui-alerts 
SYNC missed versions from official npm registry.

zooid-ui-alerts

React component for messages & alerts.

Install

npm install --save zooid-ui-alerts

Props

Prop Type Default Description
children node Body of your alert. Pass in html.
className string Additional css classes for your alert
dismissible boolean Determines whether to render 'dismiss' button
type string '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>
  }
}

Current Tags

  • 1.0.2                                ...           latest (4 years ago)

5 Versions

  • 1.0.2 [deprecated]           ...           4 years ago
  • 0.0.2 [deprecated]           ...           4 years ago
  • 0.0.1 [deprecated]           ...           4 years ago
  • 1.0.1 [deprecated]           ...           4 years ago
  • 1.0.0 [deprecated]           ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (2)
Dev Dependencies (26)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |