Skip to content

Commit 041c32d

Browse files
authored
Merge pull request #532 from rebeccaalpert/messagebox
fix(MessageBox): Allow passing additional props
2 parents 75e99da + 9a03992 commit 041c32d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/module/src/MessageBox/MessageBox.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ const MessageBoxBase: React.FunctionComponent<MessageBoxProps> = ({
2525
children,
2626
innerRef,
2727
className,
28-
position = 'top'
28+
position = 'top',
29+
...props
2930
}: MessageBoxProps) => {
3031
const [atTop, setAtTop] = React.useState(false);
3132
const [atBottom, setAtBottom] = React.useState(true);
@@ -96,6 +97,7 @@ const MessageBoxBase: React.FunctionComponent<MessageBoxProps> = ({
9697
aria-label={ariaLabel}
9798
className={`pf-chatbot__messagebox ${position === 'bottom' && 'pf-chatbot__messagebox--bottom'} ${className ?? ''}`}
9899
ref={innerRef ?? messageBoxRef}
100+
{...props}
99101
>
100102
{children}
101103
<div className="pf-chatbot__messagebox-announcement" aria-live="polite">

0 commit comments

Comments
 (0)