Sha256: c911249e3408732d68360a746800c7227279fc68174216e89a835f1f5b2f003c

Contents?: true

Size: 1.01 KB

Versions: 1772

Compression:

Stored size: 1.01 KB

Contents

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

const SelectableIconDefault = () => {
  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"
      />

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

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

export default SelectableIconDefault

Version data entries

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

Version Path
playbook_ui-12.4.0 app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx
playbook_ui-12.3.1.pre.alpha.phone1 app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx
playbook_ui-12.3.1 app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx
playbook_ui-12.3.0.pre.alpha.patchtest1 app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx
playbook_ui-12.3.0 app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx
playbook_ui-12.2.0 app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx
playbook_ui-12.1.0 app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx
playbook_ui-12.0.0 app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx
playbook_ui-11.20.0.pre.alpha.passthrough1 app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx
playbook_ui-11.20.0.pre.alpha.railsdialog1 app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx
playbook_ui-11.20.0.pre.alpha.focus1 app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx
playbook_ui-11.20.0 app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx