Sha256: 55ae21f787850cf3f35761c82aa9ce702f9470eb6c85f81585d188b5d0ef322b

Contents?: true

Size: 906 Bytes

Versions: 2

Compression:

Stored size: 906 Bytes

Contents

import React, { useState } from 'react'
import { FormGroup, SelectableCardIcon } from '../../'

const FormGroupSelectableCardIcon = () => {
  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"
        />
        <SelectableCardIcon
            checked={selectedFormat === 'football'}
            icon="football-ball"
            inputId={8}
            name="select"
            onChange={() => toggleFormat('football')}
            titleText="Football"
            value="football"
        />
      </FormGroup>
    </div>
  )
}

export default FormGroupSelectableCardIcon

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
playbook_ui-7.6.2.pre.alpha1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-7.6.1.pre.alpha1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx