Sha256: 0dd4479d22a559077bba59a69ff2ea597aa6c803a2160c305a4902d9fcb36c20

Contents?: true

Size: 970 Bytes

Versions: 151

Compression:

Stored size: 970 Bytes

Contents

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

const SelectableCardIconDefault = () => {
  const [selected, setSelected] = useState(true)
  const [unselected, setUnselected] = useState(false)

  return (
    <div className="pb--doc-demo-row">
      <SelectableCardIcon
          bodyText="Export"
          checked={selected}
          icon="chart-line"
          inputId={1}
          onChange={() => setSelected(!selected)}
          titleText="Quarterly Report"
      />
      <SelectableCardIcon
          bodyText="Export"
          checked={unselected}
          icon="chart-pie"
          inputId={2}
          onChange={() => setUnselected(!unselected)}
          titleText="Market Share"
      />
      <SelectableCardIcon
          bodyText="Export"
          disabled
          icon="analytics"
          inputId={3}
          titleText="Comprehensive"
      />
    </div>
  )
}

export default SelectableCardIconDefault

Version data entries

151 entries across 151 versions & 1 rubygems

Version Path
playbook_ui-7.11.1 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.11.0 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.10.0 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.9.0 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.8.4 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.8.3 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.8.2 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.8.1 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.8.0 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.7.0.pre.alpha1 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.7.0 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.6.2.pre.alpha1 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.6.2 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.6.1.pre.alpha1 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.6.1 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.6.0 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.5.1 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.5.0 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.4.2 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx