How to use the office-ui-fabric-react.css function in office-ui-fabric-react

To help you get started, we’ve selected a few office-ui-fabric-react 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 Azure-Samples / azure-intelligent-edge-patterns / edge-ai-void-detection / modules / apiserver / src / RetailDemo.Web.UI / ClientApp / src / components / Sidebar / Sidebar.jsx View on Github external
started: 1,
            beta: 2,
            release: 3
        };

        // Nav-linkText is a class name from the Fabric nav
        return (
            <>
                
                <span>
                    {link.name}
                </span>
                {link.status !== undefined &amp;&amp; (
                    <span>
                        {exampleStatus[link.status]}
                    </span>
                )}
            
        );
    };
github OfficeDev / office-ui-fabric-react / packages / example-app-base / src / components / Page / Page.tsx View on Github external
private _pageContent = (sections: IPageSectionProps[]): JSX.Element | undefined =&gt; {
    const { sectionWrapperClassName, showSideRail } = this.props;
    const { isMountedOffset } = this.state;

    return (
      <div>
        {// Map over array of section objects in order to add increasing transitionDelay to stagger load animation.
        sections.map((section: IPageSectionProps, sectionIndex: number) =&gt; {
          const { renderAs: SectionType = OtherPageSection, className, style, ...rest } = section;
          return (
            </div>
github OfficeDev / office-ui-fabric-react / packages / experiments / src / components / Tile / examples / Tile.Media.Example.tsx View on Github external
hideBackground={!props.showBackground}
      showBackgroundFrame={true}
    /&gt;
  );

  const { backgroundSize } = getTileLayout(tile);

  const imageSize = fitContentToBounds({
    contentSize: props.originalImageSize,
    boundsSize: backgroundSize || { width: 0, height: 0 },
    mode: 'cover'
  });

  return (
    <div style="{{">
      {renderTileWithLayout(tile, {
        background: (
          <img src="{`//placehold.it/${Math.round(imageSize.width)}x${Math.round(imageSize.height)}`}">
        )
      })}
    </div>
  );
github OfficeDev / office-ui-fabric-react / apps / fabric-website / src / components / Nav / Nav.tsx View on Github external
const match = text.slice(matchIndex, matchIndex + searchQuery.length);
        const after = text.slice(matchIndex + searchQuery.length);
        const highlightMatch = <span>{match}</span>;
        linkText = (
          &lt;&gt;
            {before}
            {highlightMatch}
            {after}
          
        );
      }
    }

    return (
      <li>
        {!(page.isUhfLink &amp;&amp; location.hostname !== 'localhost') &amp;&amp; searchRegEx.test(page.title) &amp;&amp; (
          
            {linkText}</li>
github OfficeDev / office-ui-fabric-react / apps / fabric-website / src / components / TopNav / TopNav.tsx View on Github external
private _renderLink(page: INavPage, linkIndex: number, isStacked?: boolean): JSX.Element {
    const { platform } = this.props;
    if (page.isHiddenFromMainNav) {
      return null;
    }
    return (
      <li>
        <a title="{page.title}" href="{page.url}">
          <span>{page.title}</span>
        </a>
      </li>
    );
  }
github OfficeDev / office-ui-fabric-react / apps / fabric-website / src / components / TopNav / TopNav.tsx View on Github external
private _renderLinkList(pages: INavPage[], isStacked?: boolean): JSX.Element {
    const links: JSX.Element[] = pages
      .filter(page =&gt; {
        if (!page.hasOwnProperty('isHiddenFromMainNav') &amp;&amp; page.isHomePage &amp;&amp; !isStacked) {
          return false;
        }

        return true;
      })
      .map((page, pageIndex) =&gt; this._renderLink(page, pageIndex, isStacked));

    return (
      <ul aria-label="Website top-level navigation">
        {links}
      </ul>
    );
  }
}
github SharePoint / sp-dev-fx-webparts / samples / react-todo-basic / src / webparts / todo / components / TodoListItem / TodoListItem.tsx View on Github external
const classTodoItem: string = css(
      styles.todoListItem,
      'ms-Grid',
      'ms-u-slideDownIn20'
    );

    return (
      <div data-is-focusable="{" role="row">
        
          <div>
            
            <button>
          </button></div>
        
      </div>
    );
  }
github SharePoint / sp-dev-fx-webparts / samples / react-todo / src / webparts / todo-step-4 / components / TodoItem.tsx View on Github external
label={ this.props.item.Title }
              onChange={ this._handleToggleChanged }
              checked={ this.props.item.PercentComplete &gt;= 1 }
            /&gt;
            <button>
          
          <div>
            {
              this._renderPersona(
                strings.TodoItemCreateLabel,
                this.props.item.Author,
                this.props.shouldShowCreatedBy
              )
            }
            {
              this._renderPersona(
                strings.TodoItemCompleteLabel,
                this.props.item.Editor,
                this.props.shouldShowCompletedBy &amp;&amp; this.props.item.PercentComplete &gt;= 1
              )
            }
          </div>
        </button>
github OfficeDev / office-ui-fabric-react / packages / office-ui-fabric-react / src / components / ActivityItem / examples / ActivityItem.Basic.Example.tsx View on Github external
onClick={() =&gt; {
              alert('An @mentioned name was clicked.');
            }}
          &gt;
            @Anđela Debeljak
          ,
          <span> in the text of the comment.</span>
        ],
        timeStamp: 'Just now'
      },
      {
        key: 2,
        activityDescription: [
           {
              alert('A name was clicked.');
            }}
          &gt;
            Lisha Refai
          ,
          <span> deleted </span>,
          <span>
            DocumentTitle.docx
          </span>
        ],
        activityIcon: ,
        timeStamp: '2 hours ago'
      },
      {
        key: 3,