import React from 'react'; import Base from '../checkbox/base'; import Styled from './styles'; export default class Radio extends Base { render() { const { ariaLabel, ariaDesc, ariaDescribedBy, ariaLabelledBy, checked, disabled, label, } = this.props; const radio = ( } icon={} disabled={disabled} inputProps={{ 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, 'aria-labelledby': ariaLabelledBy, }} onChange={this.handleChange} ref={this.element} /> ); return ( <> {label ? ( ) : radio} ); } }