Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
bpk-component-tooltip
Advanced tools
Backpack tooltip component.
npm install bpk-component-tooltip --save-dev
import React, { Component } from 'react';
import BpkText from 'bpk-component-text';
import BpkTooltip from 'bpk-component-tooltip';
const App = () => (
const targetRef = useRef(null);
const target = (
<div ref={targetRef} className={'my-tooltip-target'}>
<BpkText textStyle="lg">LHR</BpkText>
</div>
);
<BpkTooltip
ariaLabel="London Heathrow"
id="my-tooltip"
target={target}
>
London Heathrow
</BpkTooltip>
);
Property | PropType | Required | Default Value |
---|---|---|---|
ariaLabel | string | true | - |
id | string | true | - |
children | node | true | - |
target | node | true | - |
hideOnTouchDevices | bool | false | true |
placement | oneOf(['top', 'right', 'bottom', 'left']) | false | 'bottom' |
padded | bool | false | true |
portalStyle | object | false | null |
portalClassName | string | false | null |
popperModifiers | arrayOf(object) | false | null |
renderTarget | func | false | null |
type | oneOf(TOOLTIP_TYPES.light , TOOLTIP_TYPES.dark ) | false | TOOLTIP_TYPES.light |
ariaLabel
Tooltips are invisible to assistive technologies such as screen readers. To improve accessibility, ariaLabel
is required to describe the content of the tooltip to assistive technologies.
The label will be used on the target
element, so any existing aria-label
attached to target
will be overridden.
popperModifiers
Please refer to the documentation for the underlying positioning library "Popper.js". You can achieve various behaviours such as allowing the tooltip to overflow the viewport etc.
target
should be a DOM element with a ref
attached to it.
FAQs
Backpack tooltip component.
The npm package bpk-component-tooltip receives a total of 6 weekly downloads. As such, bpk-component-tooltip popularity was classified as not popular.
We found that bpk-component-tooltip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.