Skip to content

Instantly share code, notes, and snippets.

@vman
Created August 31, 2019 17:13
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 vman/8fbd4305fdc5e16cc37da0df5c754efa to your computer and use it in GitHub Desktop.
Save vman/8fbd4305fdc5e16cc37da0df5c754efa to your computer and use it in GitHub Desktop.
import * as React from 'react';
import { DefaultButton, Label, PrimaryButton } from 'office-ui-fabric-react';
interface IButtonComponentProps {
primaryButtonText: string;
defaultButtonText: string;
}
export class ButtonComponent extends React.Component<IButtonComponentProps, {}> {
public render(): JSX.Element {
return (
<div>
<Label>Button Components rendered from SPFx library component:</Label>
<PrimaryButton
text={this.props.primaryButtonText}
/>
<DefaultButton
text={this.props.defaultButtonText}
/>
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment