Popover

Playground

Properties

Size
Side
Align

Content

Trigger
Title
Link

Usage

PopoverContent renders in a portal. Pass Button elements to actions. Use HoverCard for additional information, and keep essential actions available without hovering.

'use client';
import { Popover, PopoverTrigger, PopoverContent, Button } from '@mbsw/ui';

export default function Example() {
  return (
    <Popover>
      <PopoverTrigger asChild>
        <Button>open</Button>
      </PopoverTrigger>
      <PopoverContent aria-label="link">
        https://example.com/document
      </PopoverContent>
    </Popover>
  );
}

The Playground Code tab includes the full example with your current settings. See Installation for the CSS imports.

Composition

HoverCard

Content

Title
Description