Skip to content

Commit 61bce3a

Browse files
committed
Add new prop (focusSearchOnOpen) to docs
1 parent 968de1b commit 61bce3a

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,22 @@ export default App;
5656

5757
## 👀 Props
5858

59-
| Prop | Description | Type | Default |
60-
| --------------------- | --------------------------------- | ------------------ | ------- |
61-
| `labelledBy` | value for `aria-labelledby` | `string` | |
62-
| `options` | options for dropdown | `[{label, value}]` | |
63-
| `value` | pre-selected rows | `[{label, value}]` | `[]` |
64-
| `hasSelectAll` | toggle 'Select All' option | `boolean` | `true` |
65-
| `isLoading` | show spinner on select | `boolean` | `false` |
66-
| `shouldToggleOnHover` | toggle dropdown on hover option | `boolean` | `false` |
67-
| `overrideStrings` | Override default strings for i18n | `object` | |
68-
| `onChange` | onChhange callback | `function` | |
69-
| `disabled` | disable dropdown | `boolean` | `false` |
70-
| `selectAllLabel` | _select all_ label | `string` | |
71-
| `disableSearch` | hide search textbox | `boolean` | `false` |
72-
| `filterOptions` | custom filter options | `function` | |
73-
| `theme` | theme variables | `object` | |
59+
| Prop | Description | Type | Default |
60+
| --------------------- | ---------------------------------- | ------------------ | ------- |
61+
| `labelledBy` | value for `aria-labelledby` | `string` | |
62+
| `options` | options for dropdown | `[{label, value}]` | |
63+
| `value` | pre-selected rows | `[{label, value}]` | `[]` |
64+
| `focusSearchOnOpen` | focus on search input when opening | `boolean` | `true` |
65+
| `hasSelectAll` | toggle 'Select All' option | `boolean` | `true` |
66+
| `isLoading` | show spinner on select | `boolean` | `false` |
67+
| `shouldToggleOnHover` | toggle dropdown on hover option | `boolean` | `false` |
68+
| `overrideStrings` | Override default strings for i18n | `object` | |
69+
| `onChange` | onChhange callback | `function` | |
70+
| `disabled` | disable dropdown | `boolean` | `false` |
71+
| `selectAllLabel` | _select all_ label | `string` | |
72+
| `disableSearch` | hide search textbox | `boolean` | `false` |
73+
| `filterOptions` | custom filter options | `function` | |
74+
| `theme` | theme variables | `object` | |
7475

7576
## 🌐 Internationalization
7677

src/multi-select/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const MultiSelectBox = styled.div`
1515
`;
1616

1717
const MultiSelect = ({
18-
focusSearchOnOpen = true,
18+
focusSearchOnOpen = true,
1919
hasSelectAll = true,
2020
shouldToggleOnHover = false,
2121
options,

0 commit comments

Comments
 (0)