Skip to content

Commit e33004c

Browse files
committed
chore: update code snippet
1 parent d11e2e9 commit e33004c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/blog/customize-shadcn-tooltip-arrows.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,13 @@ Then, we can call it inside the `Content` component.
216216
import CustomTooltipArrow from './tooltip-arrow'
217217
import TooltipArrowPrimitive from './tooltip-arrow-primitive'
218218

219-
export default () => (
219+
export default ({ children, showArrow }) => (
220220
// Adjust each component props as needed
221221
<TooltipPrimitives.Provider>
222222
<TooltipPrimitives.Root>
223223
<TooltipPrimitives.Trigger />
224224
<TooltipPrimitives.Portal>
225-
<TooltipPrimitives.Content ref={forwardedRef} {...props}>
225+
<TooltipPrimitives.Content>
226226
{children}
227227
{showArrow && (
228228
<>

0 commit comments

Comments
 (0)