1.0.5 • Published 5 years ago

react-semantic-popup v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

React standalone Popup plugin based on Semantic UI

React component based on Semantic UI inline styles with auto and manual align popup position.

Install

npm i react-semantic-popup

or

yarn add react-semantic-popup

Use

import Popup from 'react-semantic-popup';

<Popup content='Text for popup'>
    <div>
	    Some trigger element
    </div>
</Popup>

Options

propvalue
contentstring or JSX. Popup hint content.
alignstring. Custom hint position: "top left", "top center", "top right", "right center", "left center", "bottom left", "bottom center", "bottom right"
invertedboolean default: false. Inverted theme.
clickboolean default: false. Trigger popup by clicking on children element.

Example

<Popup content='Clicked' align='top right' inverted click>
    Click me
</Popup>
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago