1.0.0 • Published 27 days ago

@j4jinxx/modal v1.0.0

Weekly downloads
-
License
GPL
Repository
github
Last release
27 days ago

Modal

Minimal Modal/Dialog React Component

npm bundle size npm bundle size npm download

Install

npm i @j4jinxx/modal

Import

import Modal from '@j4jinxx/modal';

Props

NameTypeDefaultDescription
openedboolfalseIf true, the modal is open
titlestringModal Title
sizestringmdModal size (sm, md, lg)
onClosefunc( ) => { }Callback fired when the component requests to be closed
onOverlayClickfunc( ) => { }Callback fired when the Overlay is Clicked
childrennodeModal content
colorstring#ffffffModal Color
overlayColorstring#e0e0e0Overlay Color