/*! 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 { Fabric, ScrollablePane, StickyPositionType, Sticky } from 'office-ui-fabric-react'; import { lorem } from '@uifabric/example-data'; const colors = ['#eaeaea', '#dadada', '#d0d0d0', '#c8c8c8', '#a6a6a6', '#c7e0f4']; const contentAreas: JSX.Element[] = []; for (let i = 0; i < 5; i++) { contentAreas.push(createContentArea(i)); } function createContentArea(index: number) { const color = colors[index]; return (
Sticky Component #{index + 1}
{lorem(200)}
); } storiesOf('ScrollablePane', module) .addDecorator(FabricDecorator) .addDecorator(story => ( {story()} )) .addStory('Default ScrollablePane Example', () => (
{contentAreas.map(ele => { return ele; })}
));