3.0.0 • Published 9 years ago

apeman-react-toast v3.0.0

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

apeman-react-toast

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for toast components.

Installation

$ npm install apeman-react-toast --save

Demo

Live demo is hosted on GitHub Pages.

Demo Image

Usage

'use strict'

import React from 'react'
import {ApToast, ApToastStyle} from 'apeman-react-toast'

const ExampleComponent = React.createClass({
  render () {
    return (
      <div>
        <ApToastStyle />
        <ApToast/>
      </div>
    )
  }
})

Components

ApErrorToast

Props

NameTypeDefaultDescription
messages[]
icon'fa fa-check-circle'
dismissnull
level'error'

ApInfoToast

Props

NameTypeDefaultDescription
messages[]
icon'fa fa-exclamation-circle'
dismissnull
level'info'

ApToastGroup

Props

NameTypeDefaultDescription
defaultarrayOfDefault messages
infoarrayOf[]Info messages
errorarrayOf[]Error messages
warnarrayOf[]Warn messages
dismissfuncDismiss message

ApToastItem

Props

NameTypeDefaultDescription
textstring
iconstring

ApToastStyle

Props

NameTypeDefaultDescription
styleobject{}
normalColorstringApStyle.NORMAL_COLOR
infoColorstringApStyle.INFO_COLOR
warnColorstringApStyle.WARN_COLOR
errorColorstringApStyle.ERROR_COLOR
transitionDuration100

ApToast

Props

NameTypeDefaultDescription
messagesarrayOf[]Messages to show
iconstringnullIcon to show
dismissfuncnullDismiss an item
levelstring'default'Level of toast
transitionTimeout100

ApWarnToast

Props

NameTypeDefaultDescription
messages[]
icon'fa fa-warning'
dismissnull
level'warn'

License

This software is released under the MIT License.

Links

3.0.0

9 years ago

2.0.17

9 years ago

2.0.16

9 years ago

2.0.15

9 years ago

2.0.14

9 years ago

2.0.13

9 years ago

2.0.12

9 years ago

2.0.11

9 years ago

2.0.10

9 years ago

2.0.9

9 years ago

2.0.8

9 years ago

2.0.7

9 years ago

2.0.6

9 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.1.15

9 years ago

1.1.14

9 years ago

1.1.13

9 years ago

1.1.12

9 years ago

1.1.10

9 years ago

1.1.9

9 years ago

1.1.8

9 years ago

1.1.7

9 years ago

1.1.6

9 years ago

1.1.5

9 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago