overlay-border
v1.2.0arrow_drop_downv1.2.0
v1.1.1
v1.1.0
v1.0.3
v1.0.2
v1.0.1
v1.0.0
STATUS
Passing
DOWNLOADS
3,034
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
10 KB
Highlight a component using a border
1 contributor
Like
Install overlay-border as a package?
Copied
npm i @bit/bit.evangelist.dev-tools.overlay-border
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
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
modifieddraft
chevron_left
chevron_right
OverlayBorder ()
Highlight a component using a border.
The border is positioned at the top left of the component using Popper.js,
and covers the element from edge to edge. The border does not interfere with normal user flow,
using pointer-events: none; user-select: none;
.
Example
Properties
Name | Type | Description |
---|---|---|
targetElement | HTMLElement | DOM element to highlight |
motionTracking | boolean | Actively recalculate position, to support moving elements |