UNPKG

sc-react-ions

Version:

An open source set of React components that implement Ambassador's Design and UX patterns.

51 lines (47 loc) 1.9 kB
import React from 'react' import PropsList from 'private/modules/PropsList' import docs from '!!docgen!react-ions/lib/components/MultiSelect/MultiSelect' import CodeExample from 'private/modules/CodeExample' import ExampleMultiSelectField from './ExampleMultiSelectField' import exampleMultiSelectFieldCode from '!raw!./ExampleMultiSelectField' import ExampleMultiTypeahead from './ExampleMultiTypeahead' import exampleMultiTypeaheadCode from '!raw!./ExampleMultiTypeahead' import ExampleMultiTypeaheadSearch from './ExampleMultiTypeaheadSearch' import exampleMultiTypeaheadSearchCode from '!raw!./ExampleMultiTypeaheadSearch' import styles from 'private/css/content' const description = { multiSelectField: 'This is the `multi select field component`.', multiTypeahead: 'This is the `multi typeahead component`.', multiTypeaheadSearch: 'This is the `multi typeahead component` with `searchCallback`.' } const SelectFieldPage = () => ( <div> <div className={styles.content}> <div className={styles.block}> <CodeExample title='Multi Select Field' description={description.multiSelectField} markup={exampleMultiSelectFieldCode}> <ExampleMultiSelectField /> </CodeExample> <CodeExample title='Multi Typeahead' description={description.multiTypeahead} markup={exampleMultiTypeaheadCode}> <ExampleMultiTypeahead /> </CodeExample> <CodeExample title='Multi Typeahead with searchCallback' description={description.multiTypeaheadSearch} markup={exampleMultiTypeaheadSearchCode}> <ExampleMultiTypeaheadSearch /> </CodeExample> <div className={styles.block}> <h3>Props</h3> <PropsList list={docs[0].props} /> </div> </div> </div> </div> ) export default SelectFieldPage