We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 75e99da + 9a03992 commit 041c32dCopy full SHA for 041c32d
1 file changed
packages/module/src/MessageBox/MessageBox.tsx
@@ -25,7 +25,8 @@ const MessageBoxBase: React.FunctionComponent<MessageBoxProps> = ({
25
children,
26
innerRef,
27
className,
28
- position = 'top'
+ position = 'top',
29
+ ...props
30
}: MessageBoxProps) => {
31
const [atTop, setAtTop] = React.useState(false);
32
const [atBottom, setAtBottom] = React.useState(true);
@@ -96,6 +97,7 @@ const MessageBoxBase: React.FunctionComponent<MessageBoxProps> = ({
96
97
aria-label={ariaLabel}
98
className={`pf-chatbot__messagebox ${position === 'bottom' && 'pf-chatbot__messagebox--bottom'} ${className ?? ''}`}
99
ref={innerRef ?? messageBoxRef}
100
+ {...props}
101
>
102
{children}
103
<div className="pf-chatbot__messagebox-announcement" aria-live="polite">
0 commit comments