1.1.3 • Published 4 years ago

@winme/react-popover v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

react-popover

A <Popover> component for react.

Features

  • React Hooks: ✅
  • TypeScript
  • Server Render
  • Lazy Render: ✅
  • Theme: ✅
  • Configurable: ✅

Install

$ yarn add @winme/react-popover

Usage

import Popover from '@winme/react-popover'
import '@winme/react-popover/dist/index.css'

export default function App() {
  return (
    <Popover content="some message">
      <span>Click</span>
    </Popover>
  )
}

Props

PropTypeRequiredDefaultDescription
themestringfalselightcolor theme. one of 'light', 'dark'
triggerstringfalsehovertrigger popover method. one of 'hover', 'click'
positionstringfalsebottomLefthow position the popover. one of 'topLeft', 'top', 'topRight', 'rightTop', 'right', 'rightBottom', 'bottomRight', 'bottom', 'bottomLeft', 'leftBottom', 'left', 'leftTop'
contentReactNodetruepopover content
childrenReactNodetruepopover reference

Contributing

We very much welcome your contribution, you can build together with us in the following ways 😃

  • Use Ant Design Pro in your daily work.
  • Submit GitHub issues to report bugs or ask questions.
  • Propose Pull Request to improve our code.

License

react-popover is released under the MIT license.

1.1.3

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago