1.0.3 • Published 3 years ago

@aiui/ai-modal v1.0.3

Weekly downloads
-
License
GPL
Repository
github
Last release
3 years ago

AiModal

Minimal Modal React Component

npm bundle size npm bundle size npm download

Install

npm i @aiui/ai-modal

Import

import AiModal from '@aiui/ai-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 children, usually the included sub-components
colorstring#ffffffModal Color
overlayColorstring#e0e0e0Overlay Color