apeman-react-radio

4.0.5 • Public • Published

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

Name Type Default Description
prefix string uuid.v4()
name string null
options object {}
checked object {}
onChange func null
icon string ApRadio.DEFAULT_ICON
checkedIcon string ApRadio.DEFAULT_CHECKED_ICON
title ''

ApRadioStyle

Props

Name Type Default Description

ApRadio

Props

Name Type Default Description
id string null
name string null
value string null
title string ''
checked bool false
onChange func null
icon string 'ion ion-ios-circle-outline'
checkedIcon string 'ion ion-ios-circle-filled'

License

This software is released under the MIT License.

Links

Package Sidebar

Install

npm i apeman-react-radio

Weekly Downloads

10

Version

4.0.5

License

MIT

Last publish

Collaborators

  • okunishinishi