Sha256: 8242bb25fe377700b11fa1134a3c26ff128be8ddb016b4593e5b598813f2402e

Contents?: true

Size: 1 KB

Versions: 1919

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

1,919 entries across 1,919 versions & 2 rubygems

Version Path
playbook_ui-11.10.0.pre.alpha.pre.bold1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.10.0.pre.alpha.pagination1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.10.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.9.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.9.0.pre.alpha.fileupload1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.8.1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.8.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.7.0.pre.alpha.table1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.7.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.6.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.5.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.7.0.pre.alpha.pre.guagechart1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.6.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.6.0.pre.alpha.rubocopperf1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.6.1.pre.alpha.rubocop.pre.performance1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.5.0.pre.alpha.pre.rubocop app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.6.0.pre.alpha.momenttz1 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.5.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
playbook_ui-11.4.0.pre.alpha.rubytheme2 app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx