4.0.1 • Published 8 months ago

@licuido-ui/ui_dialog v4.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

DialogBox

The DialogBox component is a customizable modal dialog box that can be used to display information, messages, or custom content with optional title, body, and footer components.

Author

Link

Story Book Link DialogBox

PlayGround

Try it have a fun codeBox

Installation

npm i "@licuido-ui/ui_dialog"

Import component

import { DialogBox } from '@licuido-ui/ui_dialog';

Usage

<DialogBox
  open={open}
  handleClose={handleClose}
  closeIcon={<HighlightOffIcon />}
  title='Upload Box'
  maxWidth='sm'
  Body={}
  footerComponent={}
/>

Image

alt text

Sample Code

<DialogBox
  open={open}
  handleClose={handleClose}
  closeIcon={<HighlightOffIcon />}
  title='Upload Box'
  maxWidth='sm'
  Body={
    <Box>
      <Typography>Duis mollis, wqrhdqwifoqwjf</Typography>
    </Box>
  }
  footerComponent={
    <Box>
      <Button>Disagree</Button>
      <Button>Agree</Button>
    </Box>
  }
/>

Props

PropTypeDescriptionDefault
classNamestringThe additional CSS class for styling the dialog.-
sxSxProps<Theme>Custom styling using the Theme UI system.-
titleReact.ReactNodeThe title of the dialog.-
titleStyleSxPropsCustom styling for the title element.-
BodyReact.ReactNodeThe content of the dialog body.-
openbooleanA boolean indicating whether the dialog is open.-
handleClose() => voidA function to handle the closing of the dialog.-
closeIconReact.ReactNodeAn icon element for closing the dialog.-
dialogmodalBoxStyleSxPropsCustom styling for the modal box.-
dialogBodyStyleSxPropsCustom styling for the dialog body.-
footerComponentReact.ReactNodeThe content of the dialog footer.-
maxWidthanyChange the width of the dialog.-
idstring""Set string
titleVariantanyCustom varoant for the dialog title.-
isCloseIconbooleanA boolean indicating whether the close icon is need-
closeBtnStyleSxPropsCustom styling for the close button style-