Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-radio-group

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-radio-group - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

3

HISTORY.md

@@ -0,1 +1,4 @@

### 2.1.1 (August 17th 2015)
- Allow `selectedValue`'s type to be a boolean.
### 2.1.0 (July 26th 2015)

@@ -2,0 +5,0 @@ - Library now no longer wraps your children function return with a `div`. It now checks that you return a single component (or `null`) from the function. #18

2

lib/index.js

@@ -39,3 +39,3 @@ (function (global, factory) {

name: _react.PropTypes.string,
selectedValue: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.number]),
selectedValue: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.number, _react.PropTypes.bool]),
onChange: _react.PropTypes.func,

@@ -42,0 +42,0 @@ children: _react.PropTypes.func.isRequired

{
"name": "react-radio-group",
"version": "2.1.0",
"version": "2.1.1",
"description": "Better radio buttons.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -45,3 +45,3 @@ # [React](http://facebook.github.io/react/)-radio-group

- `name: String`: what you'd normally put on the radio inputs themselves.
- `selectedValue: String | Number`: the currently selected value. This will be used to compare against the values on the `Radio` components to select the right one.
- `selectedValue: String | Number | Boolean`: the currently selected value. This will be used to compare against the values on the `Radio` components to select the right one.
- `onChange: Function`: will be passed the newly selected value.

@@ -48,0 +48,0 @@ - `children: Function`: will be passed a `Radio` component (a thin wrapper around `input`) some fields like `type`, `name` and `checked` already set.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc