LyteNyte Grid logo for light mode. Links back to the documentation home page.
Components

Popover

LyteNyte Grid exports a general-purpose Popover component. You can use it in the grid or elsewhere in your application.

A popover is a UI component that displays contextual content anchored to another element in the interface, typically a button. A popover always appears as a result of a user action.

Popover Anatomy

LyteNyte Grid’s popover is a headless component composed of several parts that you must assemble before use. The example below provides a brief overview of these parts.

<Popover>
<Popover.Trigger />
<Popover.Container>
<Popover.Arrow />
<Popover.Title />
<Popover.Description />
<Popover.Close />
</Popover.Container>
</Popover>

Popover Configuration

The demo below demonstrates a basic popover. It contains the minimum structure required for a fully accessible popover, which you can expand upon to meet your application’s needs.

Basic Popover Implementation

Fork code on stack blitzFork code on code sandbox

Popover Properties

Popover elements accept standard HTML props. Some parts also support additional properties, which are documented below.

Popover

Prop

Popover.Trigger

Prop

Popover.Arrow

Prop

Popover.Close

Prop

Popover.Title

Prop

Popover.Description

Prop

Next Steps

  • Menu Button: Display a list of actions or options in an accessible dropdown menu.
  • Smart Select: Streamline data selection using a versatile combobox or select element.
  • Row Group Cell: Handle expansion and collapse interactions for grouped rows.