Popup
More commonly known as Modal, it is used to provide supplementary information or request user input, needed to complete a user's workflow.
Last updated
More commonly known as Modal, it is used to provide supplementary information or request user input, needed to complete a user's workflow.
Last updated
The popup component uses a custom hook called usePopup.
buttonText
-> Accepts a string/node value, used as the button name used to open popup.
userButtonStyle
-> Accepts class name(s) as string, custom styling prop for button used to open popup.
popupContentBoxMaterialHeading
-> Accepts a string/node value, used as the heading inside popup.
popupContentBoxMaterialPara
-> Accepts a string/node value, used as the content inside popup.
popupContentBoxMaterialButtonText
-> Accepts a string/node value, used as the button name inside the popup.
id
-> The id prop is similar to the id attribute in HTML. It allows to provide overall component id.
userPopupStyle
-> Accepts class name(s) as string, custom styling prop for the container containing the popup button and the hidden modal container.
userPopupContentStyle
-> Accepts class name(s) as string, custom styling prop for the hidden modal container.
userPopupContentBoxStyle
-> Accepts class name(s) as string, custom styling prop for the content container inside the above hidden modal container.
userCancelButtonStyle
-> Accepts class name(s) as string, custom styling prop for the cancel button inside the hidden popup, used to close the popup.
userPopupContentBoxMaterialStyl
e -> Accepts class name(s) as string, custom styling prop for the container containing the heading, paragraph and a button.
userButtonStyleInsidePopup
-> Accepts class name(s) as string, custom styling prop for the button inside the popup.
onClickFunction
-> Accepts a function, written by user, used to handle logic on button click.
This is the code for the Popup component.