Sha256: 378dee547f9be915f54747f9e74e0bfccc34cf19c30aaae394ffc75de04afa7f
Contents?: true
Size: 957 Bytes
Versions: 104
Compression:
Stored size: 957 Bytes
Contents
import React, { useState } from 'react' import { FormGroup, SelectableCardIcon } from '../../' const FormGroupSelectableCardIcon = (props) => { const [selectedFormat, toggleFormat] = useState(null) return ( <div> <FormGroup> <SelectableCardIcon checked={selectedFormat === 'basketball'} icon="basketball-ball" inputId={7} name="select" onChange={() => toggleFormat('basketball')} titleText="Basketball" value="basketball" {...props} /> <SelectableCardIcon checked={selectedFormat === 'football'} icon="football-ball" inputId={8} name="select" onChange={() => toggleFormat('football')} titleText="Football" value="football" {...props} /> </FormGroup> </div> ) } export default FormGroupSelectableCardIcon
Version data entries
104 entries across 104 versions & 1 rubygems