1.0.10 • Published 10 years ago

react-svg-popover v1.0.10

Weekly downloads
7
License
MIT
Repository
github
Last release
10 years ago

React SVG Popover

A Popover component rendered using SVG for React.

Demo & Examples

Live demo: https://davisml.github.io/react-svg-popover/

Installation

The easiest way to use React SVG Popover is to install it from NPM and import it (using Browserify, etc).

npm install react-svg-popover --save

Now you can import react-svg-popover as follows:

import Popover from 'react-svg-popover'

Usage

React SVG Popover can be customized using the style property. The default style is provided below as reference.

const defaultStyle = {
    arrowCenter: 0.5,
    arrowDirection: Popover.direction.bottom,
    arrowLength: 16,
    arrowWidth: 32,
    borderRadius: 8,
    width: 200,
    height: 200,
    stroke: 'rgb(210,210,210)',
    strokeWidth: 1,
    padding: 10,
    boxSizing: 'content-box',
    position: 'absolute',
    dropShadow: '0px 1px 5px rgba(0,0,0,0.1)',
    background: 'linear-gradient(90deg, rgb(252, 252, 252), rgb(246, 246, 246))'
}
return <Popover style={ defaultStyle }>
    Popover content
</Popover>

License

MIT Licensed. Copyright (c) Mark Davis 2016.

1.0.10

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago