4.0.7 • Published 9 years ago
apeman-react-accordion v4.0.7
apeman-react-accordion
apeman react package for accordion components.
Installation
$ npm install apeman-react-accordion --saveDemo
Live demo is hosted on GitHub Pages.
Usage
'use strict'
import React from 'react'
import {
ApAccordion,
ApAccordionHeader,
ApAccordionBody,
ApAccordionStyle
}from 'apeman-react-accordion'
const ExampleComponent = React.createClass({
getInitialState () {
return {
open: false
}
},
onToggle () {
const s = this
s.setState({
open: !s.state.open
})
},
render () {
const s = this
let {state} = s
return (
<div>
<ApAccordionStyle/>
<ApAccordion open={ state.open }>
<ApAccordionHeader onToggle={ s.onToggle }>
<a>This is Header text.</a>
</ApAccordionHeader>
<ApAccordionBody>
<span>This is Body text</span>
</ApAccordionBody>
</ApAccordion>
</div>
)
}
})Components
ApAccordionArrow
Props
| Name | Type | Default | Description | |
|---|---|---|---|---|
| icon | string | 'fa fa-chevron-down' |
ApAccordionBody
Props
| Name | Type | Default | Description |
|---|
ApAccordionHeader
Props
| Name | Type | Default | Description | |
|---|---|---|---|---|
| onToggle | func | null | ||
| busyDuration | number | 500 |
ApAccordionStyle
Props
| Name | Type | Default | Description |
|---|
ApAccordion
Props
| Name | Type | Default | Description | |
|---|---|---|---|---|
| open | bool | Is open or not |
License
This software is released under the MIT License.
Links
4.0.7
9 years ago
4.0.6
9 years ago
4.0.5
9 years ago
4.0.4
9 years ago
4.0.3
9 years ago
4.0.2
9 years ago
4.0.1
9 years ago
4.0.0
9 years ago
3.0.11
9 years ago
3.0.10
9 years ago
3.0.9
9 years ago
3.0.8
9 years ago
3.0.7
9 years ago
3.0.6
9 years ago
3.0.5
10 years ago
3.0.4
10 years ago
3.0.3
10 years ago
3.0.2
10 years ago
3.0.1
10 years ago
3.0.0
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.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago