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