4.0.5 • Published 9 years ago

apeman-react-radio v4.0.5

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

apeman-react-radio

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for radio component.

Installation

$ npm install apeman-react-radio --save

Demo

Live demo is hosted on GitHub Pages.

Demo Image

Usage

'use strict'

import React from 'react'
import {ApRadio, ApRadioStyle} from 'apeman-react-radio'

const html = (
  <html>
  <head>
    <ApRadioStyle/>
  </head>
  <body>
  <div>
    <ApRadio name="favor" value="orange" title="I like orange." onChange={handleChange}/>,
    <ApRadio name="favor" value="apple" title="I like apple." onChange={handleChange}/>
  </div>
  </body>
  </html>
)

Components

ApRadioGroup

Props

NameTypeDefaultDescription
prefixstringuuid.v4()Document id prefix
namestringnullName of Radio input
optionsobject{}Value and label titles
checkedobject{}Checked state for each values
onChangefuncnullHandle for change event
iconstringApRadio.DEFAULT_ICONIcon class name for normal state
checkedIconstringApRadio.DEFAULT_CHECKED_ICONIcon class name for checked state
title''

ApRadioStyle

Props

NameTypeDefaultDescription

ApRadio

Props

NameTypeDefaultDescription
idstringnullElement id of the radio box
namestringnullName of the radio box
valuestringnullvalue of the radio box
titlestring''Title text
checkedboolfalseChecked or not
onChangefuncnullHandler for change event
iconstring'ion ion-ios-circle-outline'Class name for icon
checkedIconstring'ion ion-ios-circle-filled'Class name for checked icon

License

This software is released under the MIT License.

Links

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

9 years ago

3.1.8

9 years ago

3.1.7

9 years ago

3.1.6

9 years ago

3.1.5

9 years ago

3.1.4

9 years ago

3.1.3

9 years ago

3.1.2

9 years ago

3.1.1

9 years ago

3.1.0

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

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

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago