Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

PopoverAnchor

Open .md
Live preview

Loading example…

PopoverAnchor is part of the Overlays set, imported from @jcsoftdev/ui/overlays.

import { PopoverAnchor } from "@jcsoftdev/ui/overlays";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/overlays/popover.

export const Default: Story = {
render: (args) => (
<Popover>
<PopoverTrigger asChild>
<Button variant="secondary">Ver cliente</Button>
</PopoverTrigger>
<PopoverContent {...args}>
<ClientCard />
</PopoverContent>
</Popover>
),
};

Source of the Storybook story.

Prop Type Default Description
asChild boolean

* marks a required prop.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/overlays/popover/popover.tsx