component-highlighter

v2.0.1arrow_drop_down
v2.0.1
v2.0.0
v1.0.3
v1.0.2
v1.0.1
v1.0.0
STATUS
Passing
DOWNLOADS
12
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
14 KB
Enable highlighting
1 contributor
Install component-highlighter as a package?
Copied
npm i @bit/kutner.temp.atom.component-highlighter
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right

Enable highlighting

override versions for specific components. As versions change rapidly consumers may want to specify them locally.

list ids to ignore

Identify components using a border and tooltip. The floating elements are positioned using Popper.js, with some custom code.

To select an element in the page, we listen to ‘mouseOver’ event for any user interaction with a child element, and then look for the first parent that has the html attribute "data-bit-id". Components with the ‘data-ignore-component-highlight’ attribute are completely ignored, to avoid changing target when interacting with the highlighter itself.

dom element to attach to

options for the underlying Popper.js position engine

A Popper.js react wrapper that repositions children to be adjacent to a target element.
This component is a container only, with no visual styling.

Properties
NameType
bitId
string
versionOverride
string
Help and resources