Popover

A floating panel next to its trigger; HoverCard previews on hover, never as the only way in.

View source
import { Popover, HoverCard } from "@logicplanes/kaeso-ui";

Props

  • children
    ReactNode

    The trigger and the panel's content.

  • defaultOpen
    boolean

    Whether it starts open, when the component keeps its own state.

  • onOpenChange
    ((open: boolean) => void)

    Called when it opens or closes.

  • open
    boolean

    Whether it is open, when you control it.

  • trapFocus
    boolean

    Trap focus only when the popover holds a form.