Skip to content

Instantly share code, notes, and snippets.

@SibeeshVenu
Created October 19, 2018 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SibeeshVenu/c044d4ff59fb5a2cb057f76c90468144 to your computer and use it in GitHub Desktop.
Save SibeeshVenu/c044d4ff59fb5a2cb057f76c90468144 to your computer and use it in GitHub Desktop.
Custom menu tsx file
import * as React from 'react';
import { IMenuProps } from './IMenuProps';
import { CommandBar } from 'office-ui-fabric-react/lib/CommandBar';
export default class Menu extends React.Component<IMenuProps, {}> {
constructor(props: IMenuProps) {
super(props);
}
public render(): React.ReactElement<IMenuProps> {
const { items } = this.props;
return (
<div>
<CommandBar items={items} />
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment