/*! 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 { Shimmer, ShimmerElementType as ElemType, ShimmerElementsGroup, } from 'office-ui-fabric-react'; import { mergeStyles } from 'office-ui-fabric-react/lib/Styling'; const wrapperClassName = mergeStyles({ width: 400, height: 100, margin: '10px 0', display: 'flex', alignItems: 'center', justifyContent: 'center', background: '#0078D4', outline: `1px solid #333333`, outlineOffset: '-10px', }); storiesOf('Shimmer', module) .addDecorator(story => ( // Shimmer without a specified width needs a container with a fixed width or it's collapsing.