# Popover

Displays contextual content in a floating panel anchored to a trigger. Use it for lightweight details or actions that do not require a modal.

Package: `@kela-systems/ui-components` 4.1.0

```tsx
import { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from "@kela-systems/ui-components";
```

Links (Kela sign-in needed): [Storybook](https://main--6af1efd9453270bb59a6c00c.chromatic.com/?path=/docs/components-popover--docs), [Source](https://github.com/Kela-Systems/kela/tree/main/packages/next/ui-components/src/popover), [Figma](https://www.figma.com/design/anhlwrbFM6mUiL0klxeK1I/ARK---Design-System?node-id=193-1388)

## Examples

### Default

```tsx
import {
  Button,
  Popover,
  PopoverContent,
  PopoverDescription,
  PopoverHeader,
  PopoverTitle,
  PopoverTrigger,
} from "@kela-systems/ui-components";

export default function PopoverDefault() {
  return (
    <Popover>
      <PopoverTrigger render={<Button variant="outline" />}>North fence zone</PopoverTrigger>
      <PopoverContent>
        <PopoverHeader>
          <PopoverTitle>North fence alert zone</PopoverTitle>
          <PopoverDescription>
            Alerts fire when a track stays inside for more than 10 seconds.
          </PopoverDescription>
        </PopoverHeader>
      </PopoverContent>
    </Popover>
  );
}
```

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### Popover

Also takes the props of `@base-ui/react/popover`.

### PopoverContent

Also takes the props of `@base-ui/react/popover`.

### PopoverDescription

Also takes the props of `@base-ui/react/popover`.

### PopoverHeader

Also takes the attributes of the HTML element it renders.

### PopoverTitle

Also takes the props of `@base-ui/react/popover`.

### PopoverTrigger

Also takes the props of `@base-ui/react/popover`.

## Related

- [HoverCard](https://ark.kela.design/product/components/hover-card.md)
- [Tooltip](https://ark.kela.design/product/components/tooltip.md)
