Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rortan134 committed Mar 11, 2023
1 parent 161380f commit 46441b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ Recognizing this need, `use-selectify` was created aiming to address those issue

βœ… Accessible by default

βœ… Fine-grained control
βœ… Fine-grained control with multiple approaches

βœ… Simple to style
βœ… Simple & extensible styling

βœ… Works on every device

Expand Down Expand Up @@ -430,20 +430,20 @@ Work in progress...
| maxSelections | number \| false | - | Maximum number of elements that can be selected. Will stop selecting after reaching that number and keep already selected elements. |
| autoScroll | boolean | true | Automatically try to scroll the window when the pointer approaches the viewport edge while dragging. |
| autoScrollEdgeDistance | number | 100 | Distance in px from the viewport's edges from which the box will try scrolling the window when the pointer approaches the viewport edge while dragging. |
| autoScrollStep | number | 40 | Auto scroll speed. |
| autoScrollStep | number | 30 | Auto scroll speed. |
| disableUnselection | boolean | false | Will keep every item selected after selection. Can be cleared with clearSelection(). |
| selectCriteria | string \| undefined | "\*" | The specific CSS Selector criteria to match for selecting elements. |
| onlySelectOnFullOverlap | boolean | false | Will only select the element if the full rect intersects. |
| onlySelectOnDragEnd | boolean | false | Will only select elements after user has stopped dragging or cursor has left the screen while dragging. |
| selectionDelay | number | 0 | Specify a delay in miliseconds before elements are selected, to prevent accidental selection. |
| selectionDelay | number | 0 | Specify a delay in miliseconds before elements are selected to prevent accidental selection. |
| label | string | "Drag Selection" | Accessible label for screen readers. |
| selectionTolerance | number | 0 | Distance in px from which elements can be selected even if the selection box is not visually intersecting. |
| activateOnMetaKey | boolean | false | Only enables the selection box if the user was pressing a meta key while initiating the drag. Included Meta keys are: Shift, Ctrl, Cmd and Alt. |
| 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. |
| hideOnScroll | boolean | false | Whether to hide the selection box when the window starts scrolling. Incompatible with autoScroll. |
| exclusionZone | Element \| Element[] | - | Won't enable the selection box if the user tries initiating the drag from one of the specified elements. |
| lazyLoad | boolean | false | Defers loading the selection box. |
| lazyLoad | boolean | false | Defers loading the selection box. |
| 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

1 comment on commit 46441b5

@vercel
Copy link

@vercel vercel bot commented on 46441b5 Mar 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.