@nimbus-ds/popover
TypeScript icon, indicating that this package has built-in type declarations

4.1.2 • Public • Published

@nimbus-ds/popover

@nimbus-ds/popover

The Popover component allows us to show more elements inside a floating box.

Installation

$ yarn add @nimbus-ds/popover
# or
$ npm install @nimbus-ds/popover

Component Anatomy

The component consists of a floating box with indicative arrows and optional paddings.

Guidelines

We use this component when we need to show additional components to provide more information or context within a visualization without using visible space.

This information should be secondary and non-essential, as it will remain hidden until the user interacts with the popover.

We can also use it when we need to provide a list of actions for a certain component and we don't have space to include them in it.

Indicator arrows

The use of arrows is recommended to make a reference between the Popover and the component that displays it, and should be used when this link is not clear at first glance.

Padding

We can configure the padding according to the component chosen to be inside the Popover, for example if the inserted element already has padding we can deactivate this functionality.

Recommendation for use

  • View list of products within an order
  • View lists of complementary actions
  • Display content related to new features
  • Tooltip - Can be used to give the user quick tips related to some element on the screen.

Usage

View docs here.

Nimbus

Readme

Keywords

none

Package Sidebar

Install

npm i @nimbus-ds/popover

Weekly Downloads

1

Version

4.1.2

License

MIT

Unpacked Size

30.5 kB

Total Files

5

Last publish

Collaborators

  • nimbus-design-system
  • tiendanube