Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 956f3eb

Browse files
committed
accept either string or component as ModalTrigger title
1 parent 2e439a6 commit 956f3eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vulcan-core/lib/modules/components/ModalTrigger.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ModalTrigger.propTypes = {
5454
label: PropTypes.string,
5555
component: PropTypes.object,
5656
size: PropTypes.string,
57-
title: PropTypes.string
57+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
5858
}
5959

6060
ModalTrigger.defaultProps = {

0 commit comments

Comments
 (0)