Skip to content

Commit

Permalink
add sandbox, not working until release
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Jan 7, 2025
1 parent 8dd9731 commit 7ebee6e
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { PostLayout, Contributors } from '../../_components';
import { ResponsiveIframe } from '@components';
import { CodeSnippet } from '@repo/components';

export default ({ children }) => (
Expand Down Expand Up @@ -122,13 +123,13 @@ export type HelpTextProps = {
export const HelpText = forwardRef<HTMLButtonElement, HelpTextProps>(
function HelpText(
{ placement = "right", className, children, ...rest },
{ placement = "right", children, ...rest },
ref
) {
return (
<Popover.TriggerContext>
<Popover.Trigger
className={"ds-helptext"}
className="ds-helptext"
ref={ref}
variant="tertiary"
data-color="info"
Expand All @@ -144,6 +145,11 @@ export const HelpText = forwardRef<HTMLButtonElement, HelpTextProps>(
`}
</CodeSnippet>

<ResponsiveIframe
title="own-helptext-example"
src="https://codesandbox.io/embed/xrzkvw?view=editor+%2B+preview&module=%2Fsrc%2FApp.tsx&hidenavigation=1"
/>

<Contributors
authors={[
'Tobias Barsnes',
Expand Down

0 comments on commit 7ebee6e

Please sign in to comment.