3.0.2 • Published 10 years ago

apeman-react-toggle v3.0.2

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

apeman-react-toggle

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for toggle components.

Installation

$ npm install apeman-react-toggle --save

Demo

Live demo is hosted on GitHub Pages.

Usage

'use strict'

import React from 'react'
import {ApToggle, ApToggleStyle} from 'apeman-react-toggle'

const ExampleComponent = React.createClass({
  getInitialState () {
    return {
      value: 'hoge'
    }
  },
  render () {
    const s = this
    return (
      <div>
        <ApToggleStyle/>
        <ApToggle value={ s.state.value }
                  options={ {
                            'hoge': 'This is hoge label',
                            'fuge': <span>This is <b>Foo</b></span>
                          } }
        />
      </div>
    )
  }
})

Components

ApToggleItem

Props

NameTypeDefaultDescription

ApToggleStyle

Props

NameTypeDefaultDescription

ApToggle

Props

NameTypeDefaultDescription

License

This software is released under the MIT License.

Links

3.0.2

10 years ago

3.0.1

10 years ago

3.0.0

10 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.0.1

10 years ago

1.0.0

10 years ago