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.9.0.alpha.inline1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.9.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.8.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.7.0.pre.alphawidth1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.7.0.pre.alpha.a11y.btn app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.7.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.6.1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.6.1.pre.deps1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.6.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.5.0.alpha.rs.downgrade app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.5.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.4.0.alpha.sisense app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.4.0.alpha.user.kit.bug app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.4.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.3.1.pre.alpha2 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.4.0.pre.alpha2 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.4.0.pre.alpha1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.3.1.pre.alpha1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.3.0.alpha.inline3 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-9.3.0.pre.alpha.password.strength.2 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx