# SbPopover A floating content panel that appears next to an anchor element with configurable placement. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Open | bool | false | Whether the popover is open | | Placement | SbPlacement | Bottom | Popover placement relative to anchor | | Offset | int | 8 | Offset from anchor in pixels | | FlipBehavior | bool | true | Whether to flip when near viewport edge | | FlipPreferredHeight | int | 300 | Estimated height for flip calculation | | CloseOnClickAway | bool | true | Close when clicking outside | | CloseOnEscape | bool | true | Close on Escape key | | Class | string? | null | Additional CSS classes | | Style | string? | null | Inline styles | | AdditionalAttributes | Dictionary\? | null | Additional HTML attributes | ## Events | Event | Type | Description | |-------|------|-------------| | OpenChanged | EventCallback\ | Fired when open state changes | ## Templates / Slots | Slot | Type | Description | |------|------|-------------| | AnchorContent | RenderFragment | Content that triggers the popover | | ChildContent | RenderFragment | Popover content | ## SbPlacement Enum ```csharp public enum SbPlacement { TopStart, Top, TopEnd, EndStart, End, EndEnd, BottomStart, Bottom, BottomEnd, StartStart, Start, StartEnd } ``` ## CSS Classes - `sb-popover-anchor` - Anchor wrapper - `sb-popover` - Popover container - `sb-popover--{placement}` - Placement variants ## Examples ### Basic Usage ```razor Toggle Popover

Popover content here

@code { private bool isOpen = false; } ``` ### Different Placements ```razor Top Above the button Right To the right ``` ### User Profile Popover ```razor User John Doe john@example.com Sign Out ``` ### Info Popover ```razor What is this? This setting controls how notifications are sent to your email. Enable it to receive daily digest emails. ``` ### Color Picker Popover ```razor ``` ### Without Click Away ```razor Sticky Popover

This stays open when clicking outside.

Close
``` ### Notification Popover ```razor Notifications View All @foreach (var notif in notifications.Take(5)) {
@notif.Message @notif.TimeAgo
}
```