/*! Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. */ import * as React from 'react'; import Screener from 'screener-storybook/src/screener'; import { storiesOf } from '@storybook/react'; import { FabricDecorator } from '../utilities'; import { SwatchColorPicker, ISwatchColorPickerProps } from 'office-ui-fabric-react'; const props: ISwatchColorPickerProps = { columnCount: 4, cellShape: 'circle' as any, colorCells: [ { id: 'a', label: 'green', color: '#00ff00' }, { id: 'b', label: 'orange', color: '#ffa500' }, { id: 'c', label: 'blue', color: '#0000ff' }, { id: 'd', label: 'red', color: '#ff0000' }, ], }; storiesOf('SwatchColorPicker', module) .addDecorator(FabricDecorator) .addDecorator(story => ( {story()} )) .addStory('Circle', () => , { rtl: true }) .addStory('Circle over 24px size', () => ( )) .addStory('Square', () => ) .addStory('Square over 24px size', () => ( )) .addStory('Disabled', () => ) .addStory('Multiple rows', () => ( ));