/**
* @flow
* Copyright © 2018 Galaxy Software Services https://github.com/GSS-FED/vital-ui-kit-react
* MIT license
*/
import * as React from 'react';
import styled from 'styled-components';
import Radio from './Radio';
const Root = styled.div``;
type Props = {
items: Array<{
name: string,
value: string,
label: string,
defaultChecked?: boolean,
}>,
onRadioChange: () => void,
isDisabled?: boolean,
};
/**
* @render react
* @name Radio
* @description Group of radio buttons
* @example
*
*/
const RadioGroup = ({
isDisabled,
items,
onRadioChange,
...props
}: Props) => (
{items.map(item => (
))}
);
RadioGroup.defaultProps = {
isDisabled: false,
};
export default RadioGroup;