Sha256: 8242bb25fe377700b11fa1134a3c26ff128be8ddb016b4593e5b598813f2402e

Contents?: true

Size: 1 KB

Versions: 2045

Compression:

Stored size: 1 KB

Contents

import React, { useState } from 'react'

import FormGroup from '../_form_group'
import SelectableCardIcon from '../../pb_selectable_card_icon/_selectable_card_icon'

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

2,045 entries across 2,045 versions & 2 rubygems

Version Path
playbook_ui-14.13.0.pre.rc.10 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui_docs-14.13.0.pre.rc.9 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-14.13.0.pre.rc.9 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui_docs-14.12.0.pre.alpha.playrailsinputmaskissue5933 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-14.12.0.pre.alpha.playrailsinputmaskissue5933 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui_docs-14.12.0.pre.alpha.PBNTR834advtablemaxHeightstickyheader5932 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-14.12.0.pre.alpha.PBNTR834advtablemaxHeightstickyheader5932 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui_docs-14.13.0.pre.rc.8 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-14.13.0.pre.rc.8 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui_docs-14.12.0.pre.alpha.play1887homeaddressfix5910 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-14.12.0.pre.alpha.play1887homeaddressfix5910 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui_docs-14.12.0.pre.alpha.PBNTR8335906 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-14.12.0.pre.alpha.PBNTR8335906 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui_docs-14.12.0.pre.alpha.play1849cssbargraph5901 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-14.12.0.pre.alpha.play1849cssbargraph5901 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui_docs-14.13.0.pre.rc.7 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-14.13.0.pre.rc.7 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui_docs-14.12.0.pre.alpha.play1753updatepbcontenttags5889 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-14.12.0.pre.alpha.play1753updatepbcontenttags5889 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui_docs-14.12.0.pre.alpha.play1830updateclassnamesdependency5888 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx