Skip to content

Commit 6ce287a

Browse files
committed
Update readme to include #8
1 parent 9327487 commit 6ce287a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ $ npm install @github/combobox-nav
2828
### JS
2929

3030
```js
31-
import {install, navigate, uninstall} from '@github/combobox-nav'
31+
import {clearSelection, install, navigate, uninstall} from '@github/combobox-nav'
3232
const input = document.querySelector('#robot-input')
3333
const list = document.querySelector('#list-id')
3434

3535
// To install this behavior
3636
install(input, list)
3737
// To move selection to the nth+1 item in the list
3838
navigate(input, list, 1)
39+
// To clear selection
40+
clearSelection(input, list)
3941
// To uninstall this behavior
4042
uninstall(input, list)
4143
```

0 commit comments

Comments
 (0)