All Projects → littlebits → React Popover

littlebits / React Popover

A smart popover component for React

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Popover

Iblocalizable
Localize your views directly in Interface Builder with IBLocalizable
Stars: ✭ 463 (-19.76%)
Mutual labels:  ui-components
Cfnotify
A customizable framework to create draggable views
Stars: ✭ 490 (-15.08%)
Mutual labels:  ui-components
Uiw
⚛️ @uiwjs A high quality UI Toolkit, A Component Library for React 16+.
Stars: ✭ 531 (-7.97%)
Mutual labels:  ui-components
Blazorfluentui
Port of FluentUI/Office Fabric React components and style to Blazor
Stars: ✭ 467 (-19.06%)
Mutual labels:  ui-components
Snacky
Snacky is a small library to help you adding a Snackbar to your android project.
Stars: ✭ 482 (-16.46%)
Mutual labels:  ui-components
Merakiui
🚀 ☄️ Beautiful TailwindCSS components that support RTL languages.
Stars: ✭ 496 (-14.04%)
Mutual labels:  ui-components
Vue Swatches
🎨 Help the user picking beautiful colors!
Stars: ✭ 456 (-20.97%)
Mutual labels:  ui-components
React Chat Elements
Reactjs chat elements chat UI, react chat components
Stars: ✭ 565 (-2.08%)
Mutual labels:  ui-components
React Spectrum
A collection of libraries and tools that help you build adaptive, accessible, and robust user experiences.
Stars: ✭ 5,876 (+918.37%)
Mutual labels:  ui-components
Flutter ecommerce template
This is an eCommerce minimalist template with a clean and beautiful design for Flutter.
Stars: ✭ 525 (-9.01%)
Mutual labels:  ui-components
Ignite Ui
Ignite UI by Infragistics
Stars: ✭ 468 (-18.89%)
Mutual labels:  ui-components
Reactivesearch
Search UI components for React and Vue: powered by appbase.io / Elasticsearch
Stars: ✭ 4,531 (+685.27%)
Mutual labels:  ui-components
Toastnotifications
Toast notifications for WPF allows you to create and display rich notifications in WPF applications. It's highly configurable with set of built-in options like positions, behaviours, themes and many others. It's extendable, it gives you possibility to create custom and interactive notifications in simply manner.
Stars: ✭ 507 (-12.13%)
Mutual labels:  ui-components
Topcoat
CSS for clean and fast web apps
Stars: ✭ 4,288 (+643.15%)
Mutual labels:  ui-components
Incubator Weex Ui
🏄 A rich interaction, lightweight, high performance UI library based on Weex.
Stars: ✭ 4,793 (+730.68%)
Mutual labels:  ui-components
Faqview
An easy to use FAQ view for iOS written in Swift
Stars: ✭ 462 (-19.93%)
Mutual labels:  ui-components
Po Angular
Biblioteca de componentes Angular.
Stars: ✭ 497 (-13.86%)
Mutual labels:  ui-components
React Native Ratings
Tap and Swipe Ratings component for React Native.
Stars: ✭ 571 (-1.04%)
Mutual labels:  ui-components
Light
🍭 The usual Snackbar, but elegant
Stars: ✭ 542 (-6.07%)
Mutual labels:  ui-components
Circlebar
A fun, easy-to-use tab bar navigation controller for iOS.
Stars: ✭ 513 (-11.09%)
Mutual labels:  ui-components

:toc: macro :toc-title: :toclevels: 99

react-popover

image:https://travis-ci.org/littlebits/react-popover.svg?branch=master["Build Status", link="https://travis-ci.org/littlebits/react-popover"]

toc::[]

React Versions Support

react-popover >= 0.5.0 supports React 16 while react-popover < 0.5.0 works with React 15.x.x and likely lower. There is no plan to support older versions of this library with back-ported patches and PRs for that purpose are not welcome since it increases maintenance for the authors.

Installation

yarn add react-popover

Examples

Look at the link:https://littlebits.github.io/react-popover[stories in our storybook].

API

export default Popover(props, target)

props :: {...}


body :: Node | Array Node

The popover content.


isOpen :: Boolean

Determines Whether or not the popover is rendered.


preferPlace :: Enum String | Null

Sets a preference of where to position the Popover. Only useful to specify placement in case of multiple available fits. Defaults to null. Valid values are:

above | right | below | left :: Prefer an explicit side. row | column :: Prefer an orientation. start | end :: Prefer an order. null :: No preference, automatic resolution. This is the default.


place :: String | Null

Like preferPlace except that the given place is a requirement. The resolver becomes scoped or disabled. It is scoped if the place is an orientation or order but disabled if it is a side. For example place: "row" scopes the resolver to above or below placement but place: "above" removes any need for the resolver.


onOuterAction :: (Event) -> Void

A callback function executed every time the user does an action (mousedown or touchstart) outside the DOM tree of both Popover and Target. A canonical use-case is to automatically close the Popover on any external user action.


refreshIntervalMs :: Number | Falsey

The polling speed (AKA time between each poll) in milliseconds for checking if a layout refresh is required. This polling is required because it is the only robust way to track the position of a target in the DOM. Defaults to 200. Set to a falsey value to disable.


enterExitTransitionDurationMs :: Number | Falsey

The amount of time in milliseconds that it takes to complete the enter and exit animation. Defaults to '500'.


tipSize :: Number

Defines the size of the tip pointer. Use .01 to disable tip. Defaults to '7'.


Standard
  • Properties like className and style.

target :: ReactElement

  • The React Element that this popover will orient itself around. target rendering tree is unaffected. Popover will become its owner.

appendTarget :: DOMElement

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].