Skip to content

Instantly share code, notes, and snippets.

@kruyvanna
kruyvanna / SegmentedControl.js
Last active June 28, 2017 03:03 — forked from vincentaudebert/SegmentedControl.js
Radio Buttons renderer for redux-form with Bulma css classes applied
import React from 'react';
import PropTypes from 'prop-types';
const SegmentedControl = ({ input, disabled, heading, required, className, items, name, meta: { touched, error } }) => (
<div className="field">
<div className="control">
<div className="help">{heading} {required ? (<span className="help inline is-danger">*</span>) : null}</div>
{ items.map((item, i) => (
<label className="radio m-r-2" key={ i }>