How to use the @uifabric/example-app-base.examplesOf function in @uifabric/example-app-base

To help you get started, we’ve selected a few @uifabric/example-app-base examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OfficeDev / office-ui-fabric-react / packages / styling / src / index.demo.tsx View on Github external
mediumPlus: {
      fontFamily: '"Courier New"',
      fontSize: '14px'
    }
  }
});
*/

import { examplesOf, createApp } from '@uifabric/example-app-base';
import { ColorPage } from './examples/ColorPage/ColorPage';
import { FontPage } from './examples/FontPage/FontPage';
import { IconPage } from './examples/IconPage/IconPage';
import { AnimationPage } from './examples/AnimationPage/AnimationPage';

createApp([
  examplesOf('Styling')
    .add('Colors', () => (
      
    ))
    .add('Typography', () => (
      
    ))
    .add('Icons', () => (
      
    ))
    .add('Animations', () => (
      
    ))
]);
github OfficeDev / office-ui-fabric-react / packages / example-component / src / demoIndex.tsx View on Github external
import * as React from 'react';
import { examplesOf, createApp } from '@uifabric/example-app-base';
import { ExampleComponent } from './ExampleComponent';
import { ExampleComponentPage } from './ExampleComponentPage';

createApp([
  examplesOf('Documentation')
    .add('Component docs', () => ),

  examplesOf('ExampleComponent examples')
    .add('Empty state', () => (
      
    ))
    .add('With text', () => (
      
    ))
    .add('With text and children', () => (
      
        <div>I am a div</div>
        <div>I am another div</div>
      
    ))
    .add('With a red background', () =&gt; (
      
    ))
github OfficeDev / office-ui-fabric-react / packages / example-component / src / demoIndex.tsx View on Github external
import * as React from 'react';
import { examplesOf, createApp } from '@uifabric/example-app-base';
import { ExampleComponent } from './ExampleComponent';
import { ExampleComponentPage } from './ExampleComponentPage';

createApp([
  examplesOf('Documentation')
    .add('Component docs', () =&gt; ),

  examplesOf('ExampleComponent examples')
    .add('Empty state', () =&gt; (
      
    ))
    .add('With text', () =&gt; (
      
    ))
    .add('With text and children', () =&gt; (
      
        <div>I am a div</div>
        <div>I am another div</div>
      
    ))
    .add('With a red background', () =&gt; (