Skip to content

Commit 47949cd

Browse files
authored
docs: update useTagGroup links (#1672)
1 parent 1493624 commit 47949cd

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ list below.
4646

4747
- [useSelect][useselect-readme] for a custom select component.
4848
- [useCombobox][combobox-readme] for a combobox or autocomplete input.
49-
- [useMultipleSelection][multiple-selection-readme] for selecting multiple items
50-
in a select or a combobox, as well as deleting items from selection or
51-
navigating between the selected items.
49+
- [useTagGroup][tag-group-readme] for a tag group component. Also useful to
50+
build a multiple selection combobox or select component with tags.
5251

5352
The second solution is the `Downshift` component, which can also be used to
5453
create accessible combobox and select components, providing the logic in the
@@ -734,8 +733,8 @@ check could fail even if the ref is correctly forwarded to the root DOM
734733
component. In these cases, you can provide the object
735734
`{suppressRefError : true}` as the second argument to `getRootProps` to
736735
completely bypass the check.\
737-
**Please use it with extreme care and only if you are absolutely sure that the ref
738-
is correctly forwarded otherwise `Downshift` will unexpectedly fail.**\
736+
**Please use it with extreme care and only if you are absolutely sure that the
737+
ref is correctly forwarded otherwise `Downshift` will unexpectedly fail.**\
739738
See [#235](https://github.com/downshift-js/downshift/issues/235) for the
740739
discussion that lead to this.
741740

@@ -1516,8 +1515,8 @@ MIT
15161515
https://github.com/downshift-js/downshift/blob/master/src/hooks/useSelect
15171516
[combobox-readme]:
15181517
https://github.com/downshift-js/downshift/tree/master/src/hooks/useCombobox
1519-
[multiple-selection-readme]:
1520-
https://github.com/downshift-js/downshift/tree/master/src/hooks/useMultipleSelection
1518+
[tag-group-readme]:
1519+
https://github.com/downshift-js/downshift/tree/master/src/hooks/useTagGroup
15211520
[bundle-phobia-link]: https://bundlephobia.com/result?p=downshift@3.4.8
15221521
[aria]: https://www.w3.org/TR/wai-aria-practices/
15231522
[combobox-aria-example]:

src/hooks/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ For a custom `select` dropdown check out [useSelect][select-readme].
2424

2525
For a `combobox/autocomplete` input check out [useCombobox][combobox-readme].
2626

27-
### useMultipleSelection
27+
### useTagGroup
2828

29-
For a `multiple selection` with either a `select` or a `combobox` check out
30-
[useMultipleSelection][multiple-selection-readme].
29+
For a `tag group` that could also be used to build a multiple selection `select`
30+
or a `combobox` with tags, check out [useMultipleSelection][tag-group-readme].
3131

3232
## Downshift Hooks API talk
3333

@@ -36,6 +36,7 @@ hooks at the [axe-con][axe-con] 2021 conference. The talk, which is also
3636
[recorded][axe-con-recording], illustrates how to build an accessible select,
3737
combobox, and support multiple selection using Downshift hooks and custom
3838
components from [ChakraUI][chakra-ui]. It offers a brief crash course to:
39+
3940
- build a custom Select.
4041
- build a custom Combobox.
4142
- enhance the Select and Combobox with multiple selection.
@@ -53,8 +54,8 @@ Next steps:
5354
https://github.com/downshift-js/downshift/tree/master/src/hooks/useSelect
5455
[combobox-readme]:
5556
https://github.com/downshift-js/downshift/tree/master/src/hooks/useCombobox
56-
[multiple-selection-readme]:
57-
https://github.com/downshift-js/downshift/tree/master/src/hooks/useMultipleSelection
57+
[tag-group-readme]:
58+
https://github.com/downshift-js/downshift/tree/master/src/hooks/useTagGroup
5859
[migration-guide]:
5960
https://github.com/downshift-js/downshift/tree/master/src/hooks/MIGRATION_V7.md
6061
[axe-con]: https://www.deque.com/axe-con/

0 commit comments

Comments
 (0)