Skip to content

Commit

Permalink
AutoComplete doc: suggest to limit the number of items (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyash97 authored and bpierre committed Nov 18, 2019
1 parent 092314b commit 29ef8ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/AutoComplete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Another component `AutoCompleteSelected` offers the extra functionality to selec

```jsx
import { useState } from 'react'
import { AutoComplete } from '@aragon/ui'
import { _AutoComplete as AutoComplete } from '@aragon/ui'

const items = [
'Bruce Wayne',
Expand Down Expand Up @@ -48,7 +48,9 @@ const FilterBasedOnWhatIsTyped = () => {
- Type: `Array`
- Default: `[]`

Use this property to define the items of the list. Objects can be used but for that you'll have to pass down your own item renderer.
Use this property to define the items of the list. Objects can be used but that means you’ll have to pass down your own item renderer.

Note: remember to limit the number of `items` to an acceptable number, like 10 items.

### `renderItem`

Expand Down

0 comments on commit 29ef8ad

Please sign in to comment.