BetaPublic beta — Read the release notes
Documentation

Popover

Non-modal floating content panel.

Package
@solidiom/popover
Version
0.0.1-next.0
Status
stable

Preview

This preview uses documentation-only styling. Ship with one of the included recipe outputs (CSS, Tailwind, or UnoCSS) for production styles.

Non-modal floating content panel.

Usage

Compose Root, Anchor, Trigger, Content, Close.

import * as Popover from "@solidiom/popover"

;<Popover.Root>Popover content</Popover.Root>

Installation

Install the package with pnpm add @solidiom/popover. The package requires compatible solid-js and @solidjs/web peer dependencies.

Parts

Popover exposes 5 parts:

  • Rootdata-part="root".
  • Anchordata-part="anchor".
  • Triggerdata-part="trigger".
  • Contentdata-part="content".
  • Closedata-part="close".

Styling

Popover carries data-scope="popover" and data-part attributes on each part for CSS/recipe targeting. State attributes like data-state, data-disabled, and data-highlighted are exposed where applicable.

Keyboard & behavior

KeyBehavior
EscapeCloses the popover and returns focus to the trigger.

Composition

Popover is designed to compose with other primitives. Its parts can be combined with Field, Button, or other primitives as needed.

SSR and hydration

Popover renders as semantic HTML during server rendering. Interactive behavior (keyboard handlers, state management) activates on hydration without layout shift.