All Projects â†’ jossmac â†’ react-radios

jossmac / react-radios

Licence: MIT license
🔘 Proper handling of HTML radios in react

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-radios

Segmentedbutton
Segmented Control with animation for Android API 12+
Stars: ✭ 352 (+486.67%)
Mutual labels:  radio-buttons
Selectionlist
Simple single-selection or multiple-selection checklist, based on UITableView
Stars: ✭ 93 (+55%)
Mutual labels:  radio-buttons
React Menu
React component for building accessible menu, dropdown, submenu, context menu and more.
Stars: ✭ 237 (+295%)
Mutual labels:  radio-buttons
Quicktableviewcontroller
A simple way to create a UITableView for settings in Swift.
Stars: ✭ 417 (+595%)
Mutual labels:  radio-buttons
Magic Input
CSS3 Styles for Checkbox and Radio Button inputs look prettier. with only one element.
Stars: ✭ 81 (+35%)
Mutual labels:  radio-buttons
Pretty Checkbox
A pure CSS library to beautify checkbox and radio buttons.
Stars: ✭ 1,708 (+2746.67%)
Mutual labels:  radio-buttons
Lthradiobutton
A radio button with a pretty animation
Stars: ✭ 303 (+405%)
Mutual labels:  radio-buttons
Examples wxWidgets
Shows how to use wxWidgets controls only by programming code (c++17).
Stars: ✭ 116 (+93.33%)
Mutual labels:  radio-buttons
Multipicker
Form styling plugin for jQuery
Stars: ✭ 90 (+50%)
Mutual labels:  radio-buttons
Tristatetogglebutton
Customizable tri-state toggle button (with three states, three state toggle) for Android
Stars: ✭ 198 (+230%)
Mutual labels:  radio-buttons
React Native Radio Buttons
[DEPRECATED] A Radio-button like logic wrapper for React Native
Stars: ✭ 418 (+596.67%)
Mutual labels:  radio-buttons
Dlradiobutton
Radio Button for iOS
Stars: ✭ 872 (+1353.33%)
Mutual labels:  radio-buttons
Radio Group
845 byte WAI-ARIA 1.1 compliant radio group React component
Stars: ✭ 133 (+121.67%)
Mutual labels:  radio-buttons
Xamarin.forms.inputkit
CheckBox, Radio Button, Labeled Slider, Dropdowns etc.
Stars: ✭ 372 (+520%)
Mutual labels:  radio-buttons
Pretty Checkbox Vue
Quickly integrate pretty checkbox components with Vue.js
Stars: ✭ 240 (+300%)
Mutual labels:  radio-buttons
Togglebuttongroup
A group of flowable toggle buttons, with multiple / single selection support and button customization.
Stars: ✭ 343 (+471.67%)
Mutual labels:  radio-buttons
Radiogroup
The missing iOS radio buttons group.
Stars: ✭ 113 (+88.33%)
Mutual labels:  radio-buttons
CustomWebRadioButton
An example of a make radio-button design on the web.
Stars: ✭ 15 (-75%)
Mutual labels:  radio-buttons
Radiorealbutton
A custom radio button for Android API 12+
Stars: ✭ 250 (+316.67%)
Mutual labels:  radio-buttons
React Native Flexi Radio Button
Simple and flexible Radio button for React Native App
Stars: ✭ 151 (+151.67%)
Mutual labels:  radio-buttons

React Radios

Brings radio group behavior into line with other input types in React like the select tag.

https://jossmac.github.io/react-radios

Install

yarn add react-radios

Use

import { Radio, RadioGroup } from 'react-radios';

<RadioGroup value={this.state.fruit} onChange={this.handleChange}>
  <Radio value="apple" /> Apple
  <Radio value="orange" /> Orange
  <Radio value="banana" /> Banana
</RadioGroup>

If you'd like to use the same single-value pattern for checkboxes, there's components for that too:

import { Checkbox, CheckboxGroup } from 'react-radios';

<CheckboxGroup value={this.state.numbers} onChange={this.handleChange}>
  <Checkbox value={1} /> One
  <Checkbox value={2} /> Two
  <Checkbox value={3} /> Three
</CheckboxGroup>

Props

RadioGroup / CheckboxGroup

Property Description
children Node Required. Radios or Checkboxes.
component $ReactComponent Default: $ReactFragment. Replace the underlying component.
onChange value => mixed Required. Function to handle the onChange event.
name string Name to be passed onto each child.
value string | number The value of the group.

Radio / Checkbox

Property Description
component $ReactComponent Default: 'input'. Replace the underlying component.
value string | number The value of the control.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].