diff --git a/src/components/Popover/Popover.stories.tsx b/src/components/Popover/Popover.stories.tsx index f8ffa249..4f11a20d 100644 --- a/src/components/Popover/Popover.stories.tsx +++ b/src/components/Popover/Popover.stories.tsx @@ -40,15 +40,14 @@ export const Anchored: Story = (args) => ( You can use a{' '} - - - PopoverAnchor - - + + PopoverAnchor + {' '} to anchor the popover to a different element{' '} ( export const NestedAnchored: Story = (args) => ( - - - - The PopoverAnchor can have the trigger{' '} - - - {' '} - nested inside - - + + + The PopoverAnchor can have the trigger{' '} + + + {' '} + nested inside + Popover content diff --git a/src/components/Popover/Popover.tsx b/src/components/Popover/Popover.tsx index d951ee68..52ae3bdc 100644 --- a/src/components/Popover/Popover.tsx +++ b/src/components/Popover/Popover.tsx @@ -86,4 +86,4 @@ export const PopoverClose = forwardRef( * Built using [Radix Popover](https://radix-ui.com/primitives/docs/components/popover) */ export const Popover: FC> = Root -export const PopoverAnchor = Anchor +export const PopoverAnchor = styled(Anchor, {})