forked from Semantic-Org/Semantic-UI-React
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(Dropdown): fix examples and update messages (Semantic-Org#1380)
* fix(Icon): add left dropdown name * docs(Dropdown): fix examples and update messages
- Loading branch information
1 parent
b75a876
commit 10f5547
Showing
30 changed files
with
188 additions
and
146 deletions.
There are no files selected for viewing
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
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
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
12 changes: 6 additions & 6 deletions
12
docs/app/Examples/modules/Dropdown/States/DropdownExampleActive.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import React from 'react' | ||
import { Dropdown } from 'semantic-ui-react' | ||
|
||
const options = [ | ||
{ key: 1, text: 'Choice 1', value: 1 }, | ||
{ key: 2, text: 'Choice 2', value: 2 }, | ||
] | ||
|
||
const DropdownExampleActive = () => ( | ||
<Dropdown text='Dropdown' open> | ||
<Dropdown.Menu> | ||
<Dropdown.Item>Choice 1</Dropdown.Item> | ||
<Dropdown.Item>Choice 2</Dropdown.Item> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
<Dropdown text='Dropdown' options={options} open /> | ||
) | ||
|
||
export default DropdownExampleActive |
12 changes: 6 additions & 6 deletions
12
docs/app/Examples/modules/Dropdown/States/DropdownExampleDisabled.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import React from 'react' | ||
import { Dropdown } from 'semantic-ui-react' | ||
|
||
const options = [ | ||
{ key: 1, text: 'Choice 1', value: 1 }, | ||
{ key: 2, text: 'Choice 2', value: 2 }, | ||
] | ||
|
||
const DropdownExampleDisabled = () => ( | ||
<Dropdown text='Dropdown' disabled> | ||
<Dropdown.Menu> | ||
<Dropdown.Item>Choice 1</Dropdown.Item> | ||
<Dropdown.Item>Choice 2</Dropdown.Item> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
<Dropdown text='Dropdown' options={options} disabled /> | ||
) | ||
|
||
export default DropdownExampleDisabled |
18 changes: 9 additions & 9 deletions
18
docs/app/Examples/modules/Dropdown/States/DropdownExampleDisabledItem.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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import React from 'react' | ||
import { Dropdown } from 'semantic-ui-react' | ||
|
||
const DropdownExampleActive = () => ( | ||
<Dropdown text='Dropdown'> | ||
<Dropdown.Menu> | ||
<Dropdown.Item>Choice 1</Dropdown.Item> | ||
<Dropdown.Item disabled>Choice 2</Dropdown.Item> | ||
<Dropdown.Item>Choice 3</Dropdown.Item> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
const options = [ | ||
{ key: 1, text: 'Choice 1', value: 1 }, | ||
{ key: 2, text: 'Choice 2', value: 2, disabled: true }, | ||
{ key: 3, text: 'Choice 3', value: 3 }, | ||
] | ||
|
||
const DropdownExampleDisabledItem = () => ( | ||
<Dropdown text='Dropdown' options={options} open /> | ||
) | ||
|
||
export default DropdownExampleActive | ||
export default DropdownExampleDisabledItem |
12 changes: 6 additions & 6 deletions
12
docs/app/Examples/modules/Dropdown/States/DropdownExampleError.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import React from 'react' | ||
import { Dropdown } from 'semantic-ui-react' | ||
|
||
const options = [ | ||
{ key: 1, text: 'Choice 1', value: 1 }, | ||
{ key: 2, text: 'Choice 2', value: 2 }, | ||
] | ||
|
||
const DropdownExampleError = () => ( | ||
<Dropdown text='Dropdown' error> | ||
<Dropdown.Menu> | ||
<Dropdown.Item>Choice 1</Dropdown.Item> | ||
<Dropdown.Item>Choice 2</Dropdown.Item> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
<Dropdown text='Dropdown' options={options} error /> | ||
) | ||
|
||
export default DropdownExampleError |
12 changes: 6 additions & 6 deletions
12
docs/app/Examples/modules/Dropdown/States/DropdownExampleLoading.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import React from 'react' | ||
import { Dropdown } from 'semantic-ui-react' | ||
|
||
const options = [ | ||
{ key: 1, text: 'Choice 1', value: 1 }, | ||
{ key: 2, text: 'Choice 2', value: 2 }, | ||
] | ||
|
||
const DropdownExampleLoading = () => ( | ||
<Dropdown text='Dropdown' loading> | ||
<Dropdown.Menu> | ||
<Dropdown.Item>Choice 1</Dropdown.Item> | ||
<Dropdown.Item>Choice 2</Dropdown.Item> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
<Dropdown text='Dropdown' options={options} loading /> | ||
) | ||
|
||
export default DropdownExampleLoading |
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
14 changes: 7 additions & 7 deletions
14
docs/app/Examples/modules/Dropdown/Types/DropdownExampleFloating.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
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
Oops, something went wrong.