3.0.7 • Published 9 years ago

apeman-react-info v3.0.7

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

apeman-react-info

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for info components.

Installation

$ npm install apeman-react-info --save

Demo

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

NameTypeDefaultDescription

ApInfoCollapsibleItem

Props

NameTypeDefaultDescription
labelstringLabel text
valuestringValue text
unitstringUnit suffix
onTogglefuncCallback for toggle

ApInfoDisclosableItem

Props

NameTypeDefaultDescription
labelstring
valuestring
unitstring

ApInfoFooter

Props

NameTypeDefaultDescription

ApInfoHeader

Props

NameTypeDefaultDescription

ApInfoItem

Props

NameTypeDefaultDescription
labelstringnull
valuestringnumbernodenull
unitstringnull
iconstringnull
linkstringfuncnull
linkTextstringnull

ApInfoStyle

Props

NameTypeDefaultDescription
styleobject{}
highlightColorstringApStyle.DEFAULT_HIGHLIGHT_COLOR
backgroundColorApStyle.DEFAULT_BACKGROUND_COLOR
maxWidthApStyle.CONTENT_WIDTH
rowHeightApStyle.ROW_HEIGHT

ApInfo

Props

NameTypeDefaultDescription
pullLeftbool
pullRightbool

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

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.2.4

9 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

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

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago