Skip to content

Commit 2dda34a

Browse files
authored
Fix custom buttons example (#544)
1 parent 9b3243f commit 2dda34a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/components/CodeSample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function CodeSample(props: CodeSampleProps) {
5353
const { heading, id, children, buttonText = "Show me an Example", className, config, highlight, tour } = props;
5454

5555
if (id === "demo-hook-theme") {
56-
config!.onPopoverRendered = attachFirstButton;
56+
config!.onPopoverRender = attachFirstButton;
5757
}
5858

5959
function onClick() {

docs/src/components/Examples.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ import { ExampleButton } from "./ExampleButton";
499499
element: '#customizing-popover',
500500
popover: {
501501
title: "Customizing Popover",
502-
description: "Add your own class using `popoverClass` or use `onPopoverRendered` to get full control over the popover. <br /><br /> Visit these pages which cover <a class='font-medium underline' href='/docs/styling-popover'>styling</a> and <a class='font-medium underline' href='/docs/buttons'>customizing popovers</a> in detail.",
502+
description: "Add your own class using `popoverClass` or use `onPopoverRender` to get full control over the popover. <br /><br /> Visit these pages which cover <a class='font-medium underline' href='/docs/styling-popover'>styling</a> and <a class='font-medium underline' href='/docs/buttons'>customizing popovers</a> in detail.",
503503
side: 'top',
504504
align: 'start'
505505
}

0 commit comments

Comments
 (0)