/*! 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 { FabricDecoratorTall } from '../utilities'; import { Callout, DirectionalHint, ICalloutProps } from 'office-ui-fabric-react'; const calloutContent = (

Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom.

); const defaultProps: ICalloutProps = { target: '#target', calloutWidth: 200, }; storiesOf('Callout', module) .addDecorator(story => (
Width of callout is 200 unless otherwise noted
{story()}
)) .addDecorator(FabricDecoratorTall) .addDecorator(story => // prettier-ignore {story()} , ) .addStory('Root', () => // prettier-ignore {calloutContent} , ) .addStory('Bottom auto edge', () => ( {calloutContent} )) .addStory('Bottom center', () => ( {calloutContent} )) .addStory( 'Bottom left edge', () => ( {calloutContent} ), { rtl: true }, ) .addStory( 'Bottom right edge', () => ( {calloutContent} ), { rtl: true }, ) .addStory('Left bottom edge', () => ( {calloutContent} )) .addStory('Left center', () => ( {calloutContent} )) .addStory('Left top edge', () => ( {calloutContent} )) .addStory('Right bottom edge', () => ( {calloutContent} )) .addStory('Right center', () => ( {calloutContent} )) .addStory('Right top edge', () => ( {calloutContent} )) .addStory('Top auto edge', () => ( {calloutContent} )) .addStory('Top center', () => ( {calloutContent} )) .addStory('Top left edge', () => ( {calloutContent} )) .addStory('Top right edge', () => ( {calloutContent} )) .addStory('Beak 25', () => ( {calloutContent} )) .addStory('Gap space 25', () => ( {calloutContent} )) .addStory('No beak', () => ( {calloutContent} )) .addStory('No callout width specified', () => ( {calloutContent} ));