diff --git a/packages/ui/components/tooltip/tooltip.stories.mdx b/packages/ui/components/tooltip/tooltip.stories.mdx index 2d7e7e8fb0..a09c727fd5 100644 --- a/packages/ui/components/tooltip/tooltip.stories.mdx +++ b/packages/ui/components/tooltip/tooltip.stories.mdx @@ -15,21 +15,46 @@ Tooltip components can be used to provide additional information about an elemen - + + {({ alertMsg, hoverMsg, content }) => ( - + { - alert('Copied!'); + alert(`${alertMsg}`); }}> - Hover Me + {content} + )} diff --git a/packages/ui/components/top-banner/topbanner.stories.mdx b/packages/ui/components/top-banner/topbanner.stories.mdx index 72e7886a36..44a53efbe1 100644 --- a/packages/ui/components/top-banner/topbanner.stories.mdx +++ b/packages/ui/components/top-banner/topbanner.stories.mdx @@ -62,3 +62,41 @@ Each toast has a state to represent neutral, positive or negative responses. /> + + + + {({ text, variant, ...args }) => ( + { + alert("test"); + }}> + Action + + } + variant={variant} + text={text} + /> + )} + +