Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1006 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 1006 Bytes

Mark and draw lines on the element under the mouse as it moves on the page

Uses

import useElementBox from "react-element-box"
function App() {
    const { elementBox, hoverElement } = useElementBox({})
    return (
        <>
            {elementBox}
        </>
    )
}

export default

Options

Prop Type Default
enabled boolean true
style strokeColor: string
strokeWidth: number
dashed: boolean
#6171fe
2
true
defaultMaskColor string <rgb> rgba(144, 238, 144, 0.1)

Screenshot

Demo