README
apeman-react-radio
apeman react package for radio component.
Installation
$ npm install apeman-react-radio --save
Demo
Live demo is hosted on GitHub Pages.
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.