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.92 kB
import React from 'react' import CodeExample from 'private/modules/CodeExample' import ExampleColorPickerDefault from './ExampleColorPickerDefault' import exampleColorPickerDefaultCode from '!raw!./ExampleColorPickerDefault' import ExampleColorPickerSelected from './ExampleColorPickerSelected' import exampleColorPickerSelectedCode from '!raw!./ExampleColorPickerSelected' import ExampleColorPickerCallback from './ExampleColorPickerCallback' import exampleColorPickerCallbackCode from '!raw!./ExampleColorPickerCallback' import PropsList from 'private/modules/PropsList' import docs from '!!docgen!react-ions/lib/components/ColorPicker/ColorPicker' import styles from 'private/css/content' const description = { default: 'This is the default `ColorPicker component`.', selected: 'This is the `ColorPicker component` with selected color.', callback: 'This is the `ColorPicker component` with selected color.' } const ColorPickerPage = () => ( <div> <div className={styles.content}> <div className={styles.block}> <CodeExample title='Example Default Color Picker' description={description.default} markup={exampleColorPickerDefaultCode}> <ExampleColorPickerDefault /> </CodeExample> <CodeExample title='Example Color Picker with Selected Color' description={description.selected} markup={exampleColorPickerSelectedCode}> <ExampleColorPickerSelected /> </CodeExample> <CodeExample title='Example Color Picker with Callback' description={description.selected} markup={exampleColorPickerCallbackCode}> <ExampleColorPickerCallback /> </CodeExample> <div className={styles.block}> <h3>Props</h3> <PropsList list={docs[0].props} /> </div> </div> </div> </div> ) export default ColorPickerPage