Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jun 25, 2020
1 parent 4952eaf commit 0f51adc
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions react/components/AutocompleteInput/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ const DisabledAutocompleteInput = () => (

;<DisabledAutocompleteInput />
```

#### Size

```jsx
Expand Down Expand Up @@ -305,7 +306,7 @@ const UsersAutocomplete = () => {
size: 'small',
}

const optionsRegular = {
const optionsRegular = {
onSelect: (...args) => console.log('onSelect: ', ...args),
loading,
value: !term.length
Expand All @@ -318,7 +319,7 @@ const UsersAutocomplete = () => {
size: 'regular',
}

const optionsLarge = {
const optionsLarge = {
onSelect: (...args) => console.log('onSelect: ', ...args),
loading,
value: !term.length
Expand Down Expand Up @@ -352,17 +353,20 @@ const UsersAutocomplete = () => {
placeholder: 'Search user... (e.g.: Ana)',
value: term,
}
return (<div>
<span className="mr4">
<AutocompleteInput input={input} options={optionsSmall} />
</span>
<span className="mr4">
<AutocompleteInput input={input} options={optionsRegular} />
</span>
<span className="mr4">
<AutocompleteInput input={input} options={optionsLarge} />
</span>
</div>)
return (
<div>
<span className="mr4">
<AutocompleteInput input={input} options={optionsSmall} />
</span>
<span className="mr4">
<AutocompleteInput input={input} options={optionsRegular} />
</span>
<span className="mr4">
<AutocompleteInput input={input} options={optionsLarge} />
</span>
</div>
)
}

;<UsersAutocomplete />
```

0 comments on commit 0f51adc

Please sign in to comment.