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

Popover

LyteNyte Grid exports a general purpose modern popover component. The popover component may be used in conjunction with the grid or with other components 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 Example

The demo below shows a basic popover. The displayed content represents the minimum required for a fully accessible popover. You can add additional content as needed to meet your application’s requirements.

Popover

Fork code on stack blitzFork code on code sandbox

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.