-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(Dropdown): add DropdownSearchInput example
- Loading branch information
Alexander Fedyashov
committed
Apr 25, 2017
1 parent
223e7c5
commit ea77d14
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleSearchInput.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react' | ||
import { Dropdown } from 'semantic-ui-react' | ||
|
||
const options = [ | ||
{ key: '100', text: '100', value: 100 }, | ||
{ key: '200', text: '200', value: 300 }, | ||
{ key: '300', text: '300', value: 300 }, | ||
{ key: '400', text: '400', value: 400 }, | ||
] | ||
|
||
const DropdownExampleSearchInput = () => ( | ||
<Dropdown | ||
search | ||
searchInput={{ type: 'number' }} | ||
selection | ||
options={options} | ||
placeholder='Select amount...' | ||
/> | ||
) | ||
|
||
export default DropdownExampleSearchInput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters