Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trendmicro-frontend/react-popover

React Popover component
https://github.com/trendmicro-frontend/react-popover

popovers react

Last synced: 27 days ago
JSON representation

React Popover component

Awesome Lists containing this project

README

        

# react-popover [![build status](https://travis-ci.org/trendmicro-frontend/react-popover.svg?branch=master)](https://travis-ci.org/trendmicro-frontend/react-popover) [![Coverage Status](https://coveralls.io/repos/github/trendmicro-frontend/react-popover/badge.svg?branch=master)](https://coveralls.io/github/trendmicro-frontend/react-popover?branch=master)

[![NPM](https://nodei.co/npm/@trendmicro/react-popover.png?downloads=true&stars=true)](https://nodei.co/npm/@trendmicro/react-popover/)

React Popover

Demo: https://trendmicro-frontend.github.io/react-popover

## Installation

1. Install the latest version of [react](https://github.com/facebook/react) and [react-popover](https://github.com/trendmicro-frontend/react-popover):

```
npm install --save react @trendmicro/react-popover
```

2. At this point you can import `@trendmicro/react-popover` and its styles in your application as follows:

```js
import Popover from '@trendmicro/react-popover';

// Be sure to include styles at some point, probably during your bootstraping
import '@trendmicro/react-popover/dist/react-popover.css';
```

## Usage

```js
// Basic


Popover Top

// With Header

Title

Popover Top

// With footer


Popover Top

Footer

// Set prefer place


Popover Top-left

// Set target


Popover Top

```

## API

### Properties



Name
Type
Default
Description




show
Boolean
false
Specify whether to show the popover.


placement
String
'top'

One of


  • 'top'

  • 'top-left'

  • 'top-right'

  • 'right'

  • 'right-top'

  • 'right-bottom'

  • 'bottom'

  • 'bottom-left'

  • 'bottom-right'

  • 'left'

  • 'left-top'

  • 'left-bottom'





target
Object
null
Target element to aligned

## License

MIT