-
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.
- Loading branch information
1 parent
ae87cd4
commit 31628c0
Showing
7 changed files
with
55 additions
and
90 deletions.
There are no files selected for viewing
4 changes: 1 addition & 3 deletions
4
...ples/modules/Dropdown/CheckboxExamples.js → ...ples/modules/Dropdown/DropdownExamples.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
17 changes: 0 additions & 17 deletions
17
docs/app/Examples/modules/Dropdown/States/CheckboxRemoteControlExample.js
This file was deleted.
Oops, something went wrong.
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,17 +1,16 @@ | ||
import React, { Component } from 'react' | ||
import { Form, Checkbox, Field } from 'stardust' | ||
import { Dropdown } from 'stardust' | ||
|
||
export default class CheckboxDisabledExample extends Component { | ||
export default class DropdownDisabledExample extends Component { | ||
render() { | ||
return ( | ||
<Form> | ||
<Field> | ||
<Checkbox className='disabled' label='Disabled' /> | ||
</Field> | ||
<Field> | ||
<Checkbox className='toggle' disabled label='Disabled' /> | ||
</Field> | ||
</Form> | ||
<Dropdown className='disabled' text='Dropdown'> | ||
<Dropdown.Menu> | ||
<Dropdown.Item text='Choice 1' /> | ||
<Dropdown.Item text='Choice 2' /> | ||
<Dropdown.Item text='Choice 3' /> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
) | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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,31 @@ | ||
import React, { Component } from 'react' | ||
import { Dropdown } from 'stardust' | ||
|
||
export default class DropdownDropdownExample extends Component { | ||
render() { | ||
return ( | ||
<Dropdown text='File'> | ||
<Dropdown.Item text='New' /> | ||
<Dropdown.Item text='Open...' description='ctrl + o' /> | ||
<Dropdown.Item text='Save as...' description='ctrl + s' /> | ||
<Dropdown.Item text='Rename' description='ctrl + r' /> | ||
<Dropdown.Item text='Make a copy' /> | ||
<Dropdown.Item icon='trash' text='Move to trash' /> | ||
<Dropdown.Divider /> | ||
<Dropdown.Item text='Download As...' /> | ||
<Dropdown.Item text='Publish To Web'> | ||
<Dropdown.Menu> | ||
<Dropdown.Item text='Google Docs' /> | ||
<Dropdown.Item text='Google Drive' /> | ||
<Dropdown.Item text='Dropbox' /> | ||
<Dropdown.Item text='Adobe Creative Cloud' /> | ||
<Dropdown.Item text='Private FTP' /> | ||
<Dropdown.Item text='Another Service...' /> | ||
</Dropdown.Menu> | ||
</Dropdown.Item> | ||
{/* item text can also be defined as children */} | ||
<Dropdown.Item>E-mail Collaborators</Dropdown.Item> | ||
</Dropdown> | ||
) | ||
} | ||
} |
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