1.1.4 • Published 11 months ago

tintindu-dialog v1.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

TintinDuDialog Modal Component

The TintinDuDialog is a customizable modal dialog component for React applications, offering a range of features to enhance user experience.

Features

  • Customizable Close Button: Choose between text (e.g., "Close") or an icon (e.g., "✕") for the modal's close button.
  • Custom Styles: Pass custom styles via the customStyles prop to match your application's design theme.
  • Event Handling: Utilize the onClose callback prop for a smooth user experience when the modal is closed.

Table of Contents

Props

PropTypeDescriptionDefault
isOpenbooleanControls the visibility of the modal.-
onClosefunctionCallback when the modal is requested to be closed.-
childrenReact.ReactNodeContent displayed inside the modal.-
closeButtonStyle'text' | 'icon'Style of the close button.'text'
customStylesReact.CSSPropertiesCustom styles for the modal's overlay and content areas.-

Usage Example

<TintinDuDialog
  isOpen={isModalOpen}
  onClose={() => setModalOpen(false)}
  closeButtonStyle="icon"
  customStyles={{
    overlay: { backgroundColor: 'rgba(0, 0, 0, 0.5)' },
    content: { border: '2px solid #f00' },
  }}
>
  <p>Your content here</p>
</TintinDuDialog>
1.1.4

11 months ago

1.1.3

12 months ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago