Sha256: 91d625f4500c58791a325e304631e718404a1714449cc58b55743ceb1d3e8e44

Contents?: true

Size: 1.07 KB

Versions: 94

Compression:

Stored size: 1.07 KB

Contents

import React, { useState } from 'react'
import { SelectableIcon } from '../../'

const SelectableIconDefault = (props) => {
  const [ checkSelected, toggleSelected ] = useState(true)
  const [ checkUnselected, toggleUnselected ] = useState(false)
  const [ checkDisabled, toggleDisabled ] = useState(false)

  return (

    <div className="pb--doc-demo-row">
      <SelectableIcon
          checked={checkSelected}
          icon="dollar-sign"
          inputId={10}
          onChange={() => toggleSelected(!checkSelected)}
          text="US Dollar"
          {...props}
      />

      <SelectableIcon
          checked={checkUnselected}
          icon="euro-sign"
          inputId={11}
          onChange={() => toggleUnselected(!checkUnselected)}
          text="Euro"
          {...props}
      />

      <SelectableIcon
          checked={checkDisabled}
          disabled
          icon="yen-sign"
          inputId={12}
          onChange={() => toggleDisabled(!checkDisabled)}
          text="Yen"
          {...props}
      />
    </div>
  )
}

export default SelectableIconDefault

Version data entries

94 entries across 94 versions & 1 rubygems

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