3.0.0 • Published 9 years ago
apeman-react-toast v3.0.0
apeman-react-toast
apeman react package for toast components.
Installation
$ npm install apeman-react-toast --save
Demo
Live demo is hosted on GitHub Pages.
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
Name | Type | Default | Description | |
---|---|---|---|---|
messages | [] | |||
icon | 'fa fa-check-circle' | |||
dismiss | null | |||
level | 'error' |
ApInfoToast
Props
Name | Type | Default | Description | |
---|---|---|---|---|
messages | [] | |||
icon | 'fa fa-exclamation-circle' | |||
dismiss | null | |||
level | 'info' |
ApToastGroup
Props
Name | Type | Default | Description | |
---|---|---|---|---|
default | arrayOf | Default messages | ||
info | arrayOf | [] | Info messages | |
error | arrayOf | [] | Error messages | |
warn | arrayOf | [] | Warn messages | |
dismiss | func | Dismiss message |
ApToastItem
Props
Name | Type | Default | Description | |
---|---|---|---|---|
text | string | |||
icon | string |
ApToastStyle
Props
Name | Type | Default | Description | |
---|---|---|---|---|
style | object | {} | ||
normalColor | string | ApStyle.NORMAL_COLOR | ||
infoColor | string | ApStyle.INFO_COLOR | ||
warnColor | string | ApStyle.WARN_COLOR | ||
errorColor | string | ApStyle.ERROR_COLOR | ||
transitionDuration | 100 |
ApToast
Props
Name | Type | Default | Description | |
---|---|---|---|---|
messages | arrayOf | [] | Messages to show | |
icon | string | null | Icon to show | |
dismiss | func | null | Dismiss an item | |
level | string | 'default' | Level of toast | |
transitionTimeout | 100 |
ApWarnToast
Props
Name | Type | Default | Description | |
---|---|---|---|---|
messages | [] | |||
icon | 'fa fa-warning' | |||
dismiss | null | |||
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