@@ -17,19 +17,22 @@ The `useSelect` hook used to handle items selection in list
1717| value | Values that represent selected items | ` string[] ` | |
1818| defaultValue | Default values used in case of uncontrolled usage | ` string[] ` | ` [] ` |
1919| multiple | Indicates that multiple items can be selected in the list | ` boolean ` | ` false ` |
20+ | disabled | Disables selection changes | ` boolean ` | |
2021| onUpdate | Invokes inside of ` handleSelection ` function | ` function ` | |
2122| defaultOpen | Initial value for ` open ` property | ` boolean ` | ` false ` |
2223| open | Controlled ` open ` property | ` boolean ` | |
2324| onOpenChange | Invokes while ` open ` property changes | ` function ` | |
25+ | onClose | Invokes when the list closes | ` function ` | |
2426
2527## Result
2628
27- | Name | Description | Type |
28- | :-------------- | :---------------------------------------------------------- | :--------: |
29- | value | Values that represent selected items | ` string[] ` |
30- | handleSelection | Handles item selection | ` function ` |
31- | open | List container visibility state | ` boolean ` |
32- | setOpen | (deprecated) use toggleOpen. Sets value for ` open ` property | ` function ` |
33- | toggleOpen | Invert the value of ` open ` | ` function ` |
34- | activeIndex | Index of active option | ` number ` |
35- | setActiveIndex | Sets value for ` activeIndex ` property | ` function ` |
29+ | Name | Description | Type |
30+ | :--------------- | :------------------------------------ | :--------: |
31+ | value | Values that represent selected items | ` string[] ` |
32+ | setValue | Sets value directly | ` function ` |
33+ | open | List container visibility state | ` boolean ` |
34+ | toggleOpen | Invert the value of ` open ` | ` function ` |
35+ | activeIndex | Index of active option | ` number ` |
36+ | setActiveIndex | Sets value for ` activeIndex ` property | ` function ` |
37+ | handleSelection | Handles item selection | ` function ` |
38+ | handleClearValue | Clears selected value | ` function ` |
0 commit comments