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-6.8.1 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-6.8.0 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-6.7.0.pre.alpha1 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-6.7.0 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-6.6.1 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.0.0.pre.alpha10 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-6.6.0 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-6.5.2 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.0.1.pre.alpha12 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.0.1.pre.alpha11 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.0.1.pre.alpha10 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.0.1.pre.alpha9 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-6.5.1 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-6.5.0 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.0.1.pre.alpha8 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.0.1.pre.alpha7 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.0.1.pre.alpha6 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.0.1.pre.alpha5 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.0.1.pre.alpha4 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx
playbook_ui-7.0.1.pre.alpha3 app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx