/*! 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.
{story()}
)) .addDecorator(FabricDecorator) .addDecorator(story => // prettier-ignore {story()} , ) .addStory('Basic', () => ) .addStory('50% width', () => ) .addStory( 'Circle Gap Line', () => ( ), { rtl: true }, ) .addStory('Custom elements', () => ( } width={300} /> )) .addStory('Custom elements on themed background', () => (
} /> )) .addStory('Data not loaded', () => (
Example content
)) .addStory('Data loaded', () => (
Example content
));