/*! 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 { IPersonaProps, Persona, PersonaPresence, PersonaSize } from 'office-ui-fabric-react'; import { TestImages } from '@uifabric/example-data'; const examplePersona: IPersonaProps = { imageUrl: TestImages.personaFemale, imageInitials: 'AL', text: 'Annie Lindqvist', secondaryText: 'Software Engineer', tertiaryText: 'In a meeting', optionalText: 'Available at 4:00pm', }; // prettier-ignore storiesOf('Persona', module) .addDecorator(FabricDecorator) .addDecorator(story => {story()} ) .addStory('size10 (tiny)', () => (
)) .addStory('size24 (extraExtraSmall)', () => (
)) .addStory('size28 (extraSmall)', () => (
)) .addStory('size32', () => ( )) .addStory('size40 (small)', () => (
)) .addStory('size48 (regular)', () => (
)) .addStory('default size, presences', () => (
)) .addStory('default size, details hidden', () => ( )) .addStory('size72 (large)', () => (
)) .addStory( 'size100 (extraLarge)', () => (
), { rtl: true } ) .addStory( 'size120', () => (
), { rtl: true } ) .addStory( 'Initials', () => ( ), { rtl: true } ) .addStory('Persona with children', () => ( Persona Children ));