-
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.
feat(Dropdown): add upward prop (#1603)
- Loading branch information
1 parent
3806073
commit 8651376
Showing
7 changed files
with
71 additions
and
5 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleUpward.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,14 @@ | ||
import React from 'react' | ||
import { Dropdown } from 'semantic-ui-react' | ||
|
||
const options = [ | ||
{ key: 'new', text: 'New', value: 'new' }, | ||
{ key: 'save', text: 'Save as...', value: 'save' }, | ||
{ key: 'edit', text: 'Edit', value: 'edit' }, | ||
] | ||
|
||
const DropdownExampleUpward = () => ( | ||
<Dropdown upward floating options={options} text='File' /> | ||
) | ||
|
||
export default DropdownExampleUpward |
18 changes: 18 additions & 0 deletions
18
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleUpwardInline.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,18 @@ | ||
import React from 'react' | ||
import { Dropdown } from 'semantic-ui-react' | ||
|
||
const options = [ | ||
{ key: 's', text: 'small', value: 's' }, | ||
{ key: 'm', text: 'medium', value: 'm' }, | ||
{ key: 'l', text: 'large', value: 'l' }, | ||
] | ||
|
||
const DropdownExampleUpwardInline = () => ( | ||
<div> | ||
I'd like a size{' '} | ||
<Dropdown upward floating inline options={options} defaultValue='m' /> | ||
{' '}T-shirt, please. | ||
</div> | ||
) | ||
|
||
export default DropdownExampleUpwardInline |
14 changes: 14 additions & 0 deletions
14
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleUpwardSelection.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,14 @@ | ||
import React from 'react' | ||
import { Dropdown } from 'semantic-ui-react' | ||
|
||
const options = [ | ||
{ key: 1, text: 'One', value: 1 }, | ||
{ key: 2, text: 'Two', value: 2 }, | ||
{ key: 3, text: 'Three', value: 3 }, | ||
] | ||
|
||
const DropdownExampleUpwardSelection = () => ( | ||
<Dropdown upward search selection options={options} placeholder='Choose an option' /> | ||
) | ||
|
||
export default DropdownExampleUpwardSelection |
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
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
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
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