Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rortan134 committed Mar 4, 2023
1 parent 6cbafb0 commit 5808e77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,12 @@ const { SelectBoxOutlet } = useSelectify(selectionContainerRef, {
Drawing your own selection box
</summary>

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);
Expand Down Expand Up @@ -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. |
Expand Down

0 comments on commit 5808e77

Please sign in to comment.