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.

React

Ready

Figma

React examples

Default

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

Popover

No props of its own. It also takes the props of Base UI's popover.

PopoverContent

No props of its own. It also takes the props of Base UI's popover.

PopoverDescription

No props of its own. It also takes the props of Base UI's popover.

PopoverHeader

No props of its own. It also takes the attributes of the HTML element it renders.

PopoverTitle

No props of its own. It also takes the props of Base UI's popover.

PopoverTrigger

No props of its own. It also takes the props of Base UI's popover.

Weigh Popover against these before you choose.

Read this page as Markdown

Search ARK

Find a page, a primitive or a component.