/*! 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 { HoverCard } from 'office-ui-fabric-react'; const onRenderCardContent = (item: any) => { return (
Card content goes here.
Test string passed to cards: {item.test}
); }; const expandingCardProps = { onRenderCompactCard: onRenderCardContent, onRenderExpandedCard: onRenderCardContent, renderData: { test: 'Hello World!' }, }; storiesOf('HoverCard', module) .addDecorator(FabricDecorator) .addDecorator(story => // prettier-ignore {story()} , ) .addStory( 'Root', () => ( Hover over me ), { rtl: true }, );