From 63c102ff6aec37368ff85b1e2d5a954ac4d52e71 Mon Sep 17 00:00:00 2001 From: Harry Marr Date: Thu, 30 Jun 2022 16:52:52 -0400 Subject: [PATCH] Add style overrides to example in the README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b4ef960..3c77590 100644 --- a/README.md +++ b/README.md @@ -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) => {