
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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
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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.