Skip to content

Commit

Permalink
Add style overrides to example in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
hmarr committed Jun 30, 2022
1 parent 2fa3634 commit 63c102f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Create an instance of the `ElementPicker` class, and call its `start()` method t
```javascript
import { ElementPicker } from "pick-dom-element";

const picker = new ElementPicker();
const style = { borderColor: "#0000ff" };
const picker = new ElementPicker({ style });
picker.start({
onHover: (el) => console.log(`Hover: ${el}`),
onClick: (el) => {
Expand Down

0 comments on commit 63c102f

Please sign in to comment.