Sha256: 5d1f7de7911277678b21c41a64658a7dd2cbd347d8a50ee59092287ed891e37d

Contents?: true

Size: 913 Bytes

Versions: 95

Compression:

Stored size: 913 Bytes

Contents

import React, { useState } from 'react'
import {
  Body,
  CircleIconButton,
  Flex,
  PbReactPopover,
} from '../..'

const PopoverDark = () => {
  const [showPopover, setShowPopover] = useState(false)

  const handleTogglePopover = () => {
    setShowPopover(!showPopover)
  }
  const popoverReference = (
    <CircleIconButton
        dark
        icon="info"
        onClick={handleTogglePopover}
        variant="secondary"
    />
  )

  return (
    <Flex
        dark
        orientation="row"
        vertical="center"
    >
      <Body
          dark
          text="Click info for more details"
      />
      &nbsp;
      <PbReactPopover
          dark
          offset
          placement="top"
          reference={popoverReference}
          show={showPopover}
      >
        {'I\'m a popover. I can show content of any size.'}
      </PbReactPopover>
    </Flex>
  )
}

export default PopoverDark

Version data entries

95 entries across 95 versions & 1 rubygems

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