🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@crave/farmblocks-popover

Package Overview
Dependencies
Maintainers
6
Versions
697
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crave/farmblocks-popover

A customisable popover component

latest
Source
npmnpm
Version
2.2.37
Version published
Weekly downloads
8
-99.71%
Maintainers
6
Weekly downloads
 
Created
Source

Farmblocks popover

A customisable popover component

2018-06-15 11 22 29

Installation

npm install @crave/farmblocks-popover

Usage

<Popover
  trigger={<button>Trigger</button>}
  content={dismiss => (
    <div>
      <Text>Popover content</Text>
      <button onClick={dismiss}>Dismiss</button>
    </div>
  )}
/>

API

PropertyDescriptionTypeRequiredDefault
triggerA node that will be popover's trigger. Can also be a function that receives isVisible state and returns a nodenode or func => nodeYes
contentA render function with the contents to be displayed on the popoverfunc => nodeYes
tooltipPropsProps to be passed to Tooltip componentobject
triggerWidthA CSS value for the trigger container widthstringauto
onOpencalled when the popover opensfunc
onBeforeOpencalled before the popover opens. If the given function returns a Promise, the popover will wait until it resolve to openfunc
onClosecalled when the popover closesfunc
disabledprevents the popover to open when the trigger is clicked.boolfalse

License

MIT

Keywords

popover

FAQs

Package last updated on 09 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts