diff --git a/components/bubble/Bubble.tsx b/components/bubble/Bubble.tsx index 48285161..e9339d8b 100644 --- a/components/bubble/Bubble.tsx +++ b/components/bubble/Bubble.tsx @@ -40,6 +40,7 @@ const Bubble: React.ForwardRefRenderFunction = (props, r onTypingComplete, header, footer, + extra, ...otherHtmlProps } = props; @@ -139,6 +140,21 @@ const Bubble: React.ForwardRefRenderFunction = (props, r )} > {contentNode} + {extra ? ( +
+ {extra} +
+ ) : null} ); diff --git a/components/bubble/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/bubble/__tests__/__snapshots__/demo-extend.test.ts.snap index 9b97babf..edb7fa1b 100644 --- a/components/bubble/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/bubble/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -1053,6 +1053,39 @@ exports[`renders components/bubble/demo/header-and-footer.tsx extend context cor class="ant-bubble-content ant-bubble-content-filled" > Hello, welcome to use Ant Design X! Just ask if you have any questions. +
+ +