Components

A floating panel for contextual information or actions.

Installation

npm install @mijn-ui/react-popover

Usage

import { Popover, PopoverContent, PopoverTrigger } from "@mijn-ui/react-popover"
<Popover>
  <PopoverTrigger>Open</PopoverTrigger>
  <PopoverContent>Place content for the popover here.</PopoverContent>
</Popover>

API Reference

Built on Radix UI — all underlying primitive props are forwarded in addition to the props below.

PropTypeDefaultDescription
unstyledbooleanfalseOpt out of the default styles to fully customize the component.
classNamesobjectOverride classes per slot (see Style Slots below).
classNamestringAdditional classes for the root element.

Popover Style Slots

Slot NameTargeted ComponentPurpose
basePopoverStyles the root popover component.
triggerPopoverTriggerStyles the trigger for opening the popover.
closePopoverCloseStyles the close button within the popover.
contentPopoverContentStyles the popover content.