3.0.7 • Published 9 years ago
apeman-react-info v3.0.7
apeman-react-info
apeman react package for info components.
Installation
$ npm install apeman-react-info --saveDemo
Live demo is hosted on GitHub Pages.
Usage
'use strict'
import React from 'react'
import {ApInfo, ApInfoStyle} from 'apeman-react-info'
const ExampleComponent = React.createClass({
render () {
return (
<div>
<ApInfoStyle/>
<ApInfo>
<ApInfoHeader>hogehoge</ApInfoHeader>
<ApInfoBody>
<ApInfoItem label="foo" value="bar"/>
<ApInfoItem label="foo2" value="bar2"/>
</ApInfoBody>
</ApInfo>
</div>
)
}
})Components
ApInfoBody
Props
| Name | Type | Default | Description |
|---|
ApInfoCollapsibleItem
Props
| Name | Type | Default | Description | |
|---|---|---|---|---|
| label | string | Label text | ||
| value | string | Value text | ||
| unit | string | Unit suffix | ||
| onToggle | func | Callback for toggle |
ApInfoDisclosableItem
Props
| Name | Type | Default | Description | |
|---|---|---|---|---|
| label | string | |||
| value | string | |||
| unit | string |
ApInfoFooter
Props
| Name | Type | Default | Description |
|---|
ApInfoHeader
Props
| Name | Type | Default | Description |
|---|
ApInfoItem
Props
| Name | Type | Default | Description | |||
|---|---|---|---|---|---|---|
| label | string | null | ||||
| value | string | number | node | null | ||
| unit | string | null | ||||
| icon | string | null | ||||
| link | string | func | null | |||
| linkText | string | null |
ApInfoStyle
Props
| Name | Type | Default | Description | |
|---|---|---|---|---|
| style | object | {} | ||
| highlightColor | string | ApStyle.DEFAULT_HIGHLIGHT_COLOR | ||
| backgroundColor | ApStyle.DEFAULT_BACKGROUND_COLOR | |||
| maxWidth | ApStyle.CONTENT_WIDTH | |||
| rowHeight | ApStyle.ROW_HEIGHT |
ApInfo
Props
| Name | Type | Default | Description | |
|---|---|---|---|---|
| pullLeft | bool | |||
| pullRight | bool |
License
This software is released under the MIT License.
Links
3.0.7
9 years ago
3.0.6
9 years ago
3.0.5
9 years ago
3.0.4
9 years ago
3.0.3
9 years ago
3.0.2
9 years ago
3.0.1
9 years ago
3.0.0
9 years ago
2.0.21
9 years ago
2.0.20
9 years ago
2.0.19
9 years ago
2.0.18
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
10 years ago
2.0.4
10 years ago
2.0.3
10 years ago
2.0.2
10 years ago
2.0.1
10 years ago
2.0.0
10 years ago
1.2.4
10 years ago
1.2.3
10 years ago
1.2.2
10 years ago
1.2.1
10 years ago
1.2.0
10 years ago
1.1.8
10 years ago
1.1.7
10 years ago
1.1.6
10 years ago
1.1.5
10 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.1
10 years ago
1.0.0
10 years ago