Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

sarat1669/react-popped

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-popped

React Popover on Steroids

Examples

Visit our project page

Installation

react-popped

Usage

import React, { Component } from 'react'
import { render } from 'react-dom'
import Popped from 'react-popped'

let content = (<div>Popped</div>)

render(
  <Popped position='auto' content={content}>
    <a href='#'>hover</a>
  </Popped>
, document.getElementById('app'))

API

Name Type Default Description
position string auto Positioning of the popover. Enum of 'auto', 'right', 'bottom', 'left', 'top'
content React.Element Content of the popover
order string[] ['right', 'bottom', 'left', 'top'] Priority of auto positioning

License

react-popped is released under the MIT license.