Sha256: 210fe3aaded28d7f71515d8722fd1b371848121078e7eb6a9d55c727a6434639

Contents?: true

Size: 663 Bytes

Versions: 63

Compression:

Stored size: 663 Bytes

Contents

import React, { useState } from 'react'
import { Button, Dialog } from '../../'

const DialogDefault = () => {
  const [isOpen, setIsOpen] = useState(false)
  const close = () => setIsOpen(false)
  const open = () => setIsOpen(true)

  return (
    <>
      <Button onClick={open}>{'Open Dialog'}</Button>
      <Dialog
          cancelButton="Cancel"
          confirmButton="Okay"
          onCancel={close}
          onClose={close}
          onConfirm={close}
          opened={isOpen}
          size="sm"
          text="Hello Body Text, Nice to meet ya."
          title="Header Title is the Title Prop"
      />
    </>
  )
}

export default DialogDefault

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
playbook_ui-9.17.0 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.17.0.pre.decouple.website2 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.16.0 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.15.0 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.15.0.pre.decouple.website1 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.14.1 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.13.0 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.12.0 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.11.0 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.10.0 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.9.0.alpha.inline1 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.9.0 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.8.0 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx
playbook_ui-9.7.0.pre.alphawidth1 app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx