api_en.md 2.5 KB

Modal Props

Name Type Default Required Description
visible boolean false N Whether to show the modal.
title string Current language modal.title N Title text.
titleAlign 'left'\|'center'\|'right' 'center' N Title alignment.
content string Current language modal.content N Content text.
showIcon boolean false N Whether to show icon.
icon Icon {} N Icon props.
showBtn boolean true N Whether to show button.
btnText string Current language modal.btnText N Button text.
button Button {} N Button props.
popup Popup {} N Popup props.

Modal Events

Name Type Parameters Description
onclose () => void - Triggered when modal closes.

Modal Snippets

Name Type Parameters Description
contentChild Snippet - Render the content when it is passed in.