Skip to content

Commit

Permalink
docs(Dropdown): added comments for shape of options (#1086)
Browse files Browse the repository at this point in the history
docs(Dropdown): added comments for shape of options
  • Loading branch information
fobbyal authored and levithomason committed Dec 27, 2016
1 parent 192d0d7 commit bcdf523
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ import React from 'react'
import { Dropdown } from 'semantic-ui-react'

import { friendOptions } from '../common'
// friendOptions = [
// {
// text: 'Jenny Hess',
// value: 'Jenny Hess',
// image: { avatar: true, src: '/assets/images/avatar/small/jenny.jpg' },
// },
// ...
// ]

const DropdownExampleInline = () => (
<span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ import React from 'react'
import { Dropdown, Input } from 'semantic-ui-react'

import { tagOptions } from '../common'
// tagOptions = [
// {
// text: 'Important',
// value: 'Important',
// label: { color: 'red', empty: true, circular: true },
// },
// ...
// ]


const DropdownExampleMultipleSearchInMenu = () => (
<Dropdown text='Filter Posts' multiple>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import { Dropdown } from 'semantic-ui-react'

import { stateOptions } from '../common'
// stateOptions = [ { value: 'AL', text: 'Alabama' }, ... ]

const DropdownExampleMultipleSearchSelection = () => (
<Dropdown placeholder='State' fluid multiple search selection options={stateOptions} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import { Dropdown } from 'semantic-ui-react'

import { countryOptions } from '../common'
// countryOptions = [ { value: 'af', flag: 'af', text: 'Afghanistan' }, ... ]

const DropdownExampleMultipleSearchSelectionTwo = () => (
<Dropdown placeholder='Select Country' fluid multiple search selection options={countryOptions} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import { Dropdown } from 'semantic-ui-react'

import { languageOptions } from '../common'
// languageOptions = [ { text: 'Arabic', value: 'Arabic' }, ... ]

/**
* NOTE: In this example, the dropdown should contain a label on the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ import React from 'react'
import { Dropdown, Input } from 'semantic-ui-react'

import { tagOptions } from '../common'
// tagOptions = [
// {
// text: 'Important',
// value: 'Important',
// label: { color: 'red', empty: true, circular: true },
// },
// ...
// ]

const DropdownExampleSearchInMenu = () => (
<Dropdown text='Filter Posts' floating labeled button className='icon'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import { Dropdown } from 'semantic-ui-react'

import { countryOptions } from '../common'
// countryOptions = [ { value: 'af', flag: 'af', text: 'Afghanistan' }, ... ]

const DropdownExampleSearchSelection = () => (
<Dropdown placeholder='Select Country' fluid search selection options={countryOptions} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import { Dropdown } from 'semantic-ui-react'

import { stateOptions } from '../common'
// stateOptions = [ { value: 'AL', text: 'Alabama' }, ... ]

const DropdownExampleSearchSelectionTwo = () => (
<Dropdown placeholder='State' search selection options={stateOptions} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ import React from 'react'
import { Dropdown } from 'semantic-ui-react'

import { friendOptions } from '../common'
// friendOptions = [
// {
// text: 'Jenny Hess',
// value: 'Jenny Hess',
// image: { avatar: true, src: '/assets/images/avatar/small/jenny.jpg' },
// },
// ...
// ]


const DropdownExampleSelection = () => (
<Dropdown placeholder='Select Friend' fluid selection options={friendOptions} />
Expand Down

0 comments on commit bcdf523

Please sign in to comment.