1.0.3 • Published 6 years ago

@materialr/radio v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

MaterialR Radio

@materialr/radio

Build Status Coverage Status NSP Status semantic-release

React Material radio implementation

Installation

$ npm install --save @materialr/radio

Demo

A full demo is available on the MaterialR website showcasing all variants.

Components

Default export

import Radio from '@materialr/radio';

Props

PropTypeRequiredDefaultDescription
checkedboolYesN/AWhether the radio button is checked
classNamestringNoundefinedAdditional classNames to add
disabledboolNofalseWhether the radio button is disabled
idstringNouuidv1()The id attribute for the element
labelstringYesN/AThe label for the radio button
namestringYesN/AThe name attribute of the element
onBlurfuncNoundefinedThe blur event handler
onChangefuncYesN/AThe change event handler
onDragStartfuncNoundefinedThe dragstart event handler
onDropfuncNoundefinedThe drop event handler
onFocusfuncNoundefinedThe focus event handler
valuestringYesN/AThe element's value