From 5808e77717cd84b447d755c3d192828ed2630ca0 Mon Sep 17 00:00:00 2001 From: Rortan Date: Sat, 4 Mar 2023 20:50:40 +0100 Subject: [PATCH] update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f429065..2079115 100644 --- a/README.md +++ b/README.md @@ -363,12 +363,12 @@ const { SelectBoxOutlet } = useSelectify(selectionContainerRef, { Drawing your own selection box +Start by creating your box component and pass in the provided `selectionBoxRef`, then apply the `selectionBox` to the styles for the pointer coordinates. + > **Note** > > You will not have any of the accessibility features included by default. -Start by creating your box component and pass in the provided `selectionBoxRef`, then apply the `selectionBox` to the styles for the pointer coordinates. - ```tsx export function App() { const selectionContainerRef = React.useRef(null); @@ -431,7 +431,7 @@ Work in progress... | activateOnKey | string[] | [] | Only enables the selection box if the user was pressing a specified key while initiating the drag. | | theme | "default" \| "outline" | "default" | Included theme options for the selection box appearance. | | hideOnScroll | boolean | false | Whether to hide the selection box when the window starts scrolling. | -| exclusionZone | Element \| Element[] | - | Won't enable the selection box if the user tries initiating the drag from the specified elements. | +| exclusionZone | Element \| Element[] | - | Won't enable the selection box if the user tries initiating the drag from one of the specified elements. | | disabled | boolean | false | Disables the selection box interaction & dragging. | | forceMount | boolean | false | Forces the mounting of the selection box on initialization. | | onSelect | (element: Element) => void | - | Callback function when an element is selected. |