3.0.4 • Published 9 years ago

apeman-react-section v3.0.4

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

apeman-react-section

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for section components.

Installation

$ npm install apeman-react-section --save

Demo

Live demo is hosted on GitHub Pages.

Demo Image

Usage

'use strict'

import React from 'react'
import {ApSection, ApSectionHeader, ApSectionBody, ApSectionStyle} from 'apeman-react-section'

const ExampleComponent = React.createClass({
  render () {
    return (
      <div>
        <ApSectionStyle/>
        <ApSection>
          <ApSectionHeader anchored={ true }>This is header of the section.</ApSectionHeader>
          <ApSectionBody>This is content of the section.</ApSectionBody>
        </ApSection>
        <ApSection>
          <ApSectionHeader>This is header of the section.</ApSectionHeader>
          <ApSectionBody>This is content of the section.</ApSectionBody>
        </ApSection>
      </div>
    )
  }
})

Components

ApSectionBody

Props

NameTypeDefaultDescription

ApSectionHeaderButton

Props

NameTypeDefaultDescription
iconstringnull
textstringnull

ApSectionHeader

Props

NameTypeDefaultDescription
anchorIconstring'ion ion-link'Icon class name for anchor
anchoredboolShow anchor
linedboolShow line under header text

ApSectionStyle

Props

NameTypeDefaultDescription
styleobject{}
captionColorApStyle.CAPTION_COLOR
captionBorderColorApStyle.CAPTION_BORDER_COLOR
highlightColorApStyle.DEFAULT_HIGHLIGHT_COLOR

ApSection

Props

NameTypeDefaultDescription
idstring`ap-section-${uuid.v4()}`

License

This software is released under the MIT License.

Links

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

10 years ago

1.2.5

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

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago