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

Version Path
playbook_ui-9.19.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.18.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.17.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.17.0.pre.decouple.website2 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.16.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.15.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.15.0.pre.decouple.website1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.14.1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.13.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.12.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.11.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.10.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx