
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@crave/farmblocks-popover
Advanced tools
A customisable popover component

npm install @crave/farmblocks-popover
<Popover
trigger={<button>Trigger</button>}
content={dismiss => (
<div>
<Text>Popover content</Text>
<button onClick={dismiss}>Dismiss</button>
</div>
)}
/>
| Property | Description | Type | Required | Default |
|---|---|---|---|---|
| trigger | A node that will be popover's trigger. Can also be a function that receives isVisible state and returns a node | node or func => node | Yes | |
| content | A render function with the contents to be displayed on the popover | func => node | Yes | |
| tooltipProps | Props to be passed to Tooltip component | object | ||
| triggerWidth | A CSS value for the trigger container width | string | auto | |
| onOpen | called when the popover opens | func | ||
| onBeforeOpen | called before the popover opens. If the given function returns a Promise, the popover will wait until it resolve to open | func | ||
| onClose | called when the popover closes | func | ||
| disabled | prevents the popover to open when the trigger is clicked. | bool | false |
MIT
FAQs
A customisable popover component
The npm package @crave/farmblocks-popover receives a total of 8 weekly downloads. As such, @crave/farmblocks-popover popularity was classified as not popular.
We found that @crave/farmblocks-popover demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.