4.0.1 • Published 8 months ago
@licuido-ui/ui_dialog v4.0.1
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
- @author Narayanamoorthi narayana@crayond.co
Link
PlayGround
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

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
| Prop | Type | Description | Default |
|---|---|---|---|
| className | string | The additional CSS class for styling the dialog. | - |
| sx | SxProps<Theme> | Custom styling using the Theme UI system. | - |
| title | React.ReactNode | The title of the dialog. | - |
| titleStyle | SxProps | Custom styling for the title element. | - |
| Body | React.ReactNode | The content of the dialog body. | - |
| open | boolean | A boolean indicating whether the dialog is open. | - |
| handleClose | () => void | A function to handle the closing of the dialog. | - |
| closeIcon | React.ReactNode | An icon element for closing the dialog. | - |
| dialogmodalBoxStyle | SxProps | Custom styling for the modal box. | - |
| dialogBodyStyle | SxProps | Custom styling for the dialog body. | - |
| footerComponent | React.ReactNode | The content of the dialog footer. | - |
| maxWidth | any | Change the width of the dialog. | - |
| id | string | "" | Set string |
| titleVariant | any | Custom varoant for the dialog title. | - |
| isCloseIcon | boolean | A boolean indicating whether the close icon is need | - |
| closeBtnStyle | SxProps | Custom styling for the close button style | - |
4.0.1
8 months ago