1.4.0 • Published 5 months ago
@humblejs/modal v1.4.0
Modal
Install
yarn add @humblejs/modal
Props
Name | Type / Description | Is Required? | Default |
---|---|---|---|
title | string | NO | null |
onCancel | funcTriggers when dialog is cancelled. This function is triggered when close button is clicked, escape key is pressed or clicked outside the dialog. Usually you will set isOpen to false in the parent | YES | |
hasCloseButton | boolWhether there is close button or not. This button calls onCancel | NO | true |
isOpen | boolWhether modal is open or not, usually you will set it from parent's state | NO | false |
fullScreen | boolWhether modal is full screen or not | NO | false |
transitionType | one of slide appear | NO | appear |