@uifabric/experiments
Version:
Experimental React components for building experiences for Office 365.
26 lines • 2.57 kB
JavaScript
import * as React from 'react';
import { ExampleCard, ComponentPage, PropertiesTableSet } from '@uifabric/example-app-base';
import { PersonaCoinExample } from './examples/PersonaCoin.Example';
import { PersonaCoinSizeAndColorExample } from './examples/PersonaCoinSizeAndColor.Example';
var PersonaCoinExampleCode = require('!raw-loader!@uifabric/experiments/src/components/PersonaCoin/examples/PersonaCoin.Example.tsx');
var PersonaCoinSizeAndColorExampleCode = require('!raw-loader!@uifabric/experiments/src/components/PersonaCoin/examples/PersonaCoinSizeAndColor.Example.tsx');
export var PersonaCoinPage = function (props) {
return (React.createElement(ComponentPage, { title: " PersonaCoin", componentName: " PersonaCoin", exampleCards: React.createElement("div", null,
React.createElement(ExampleCard, { title: "PersonaCoin basic usage", code: PersonaCoinExampleCode },
React.createElement(PersonaCoinExample, null)),
React.createElement(ExampleCard, { title: "PersonaCoin sizes and colors", code: PersonaCoinSizeAndColorExampleCode },
React.createElement(PersonaCoinSizeAndColorExample, null))), propertiesTables: React.createElement(PropertiesTableSet, { sources: [require('!raw-loader!@uifabric/experiments/src/components/PersonaCoin/PersonaCoin.types.ts')] }), overview: React.createElement("div", null,
React.createElement("p", null, "The PersonaCoin component is generally used as a building block for other components like Persona/FacePile/VerticalPersona."),
React.createElement("p", null, "In case you need to render just a PersonaCoin you can use this component directly.")), bestPractices: React.createElement("div", null), dos: React.createElement("div", null,
React.createElement("ul", null,
React.createElement("li", null, "Provide as few props as needed to render the coin"),
React.createElement("li", null,
"Use the ",
React.createElement("code", null, "text"),
" prop instead of the ",
React.createElement("code", null, "initials"),
" prop"))), donts: React.createElement("div", null,
React.createElement("ul", null,
React.createElement("li", null, "Change the colors of the initials or the coin unless you have a well grounded reason. (For consistency across products)"))), isHeaderVisible: props.isHeaderVisible }));
};
//# sourceMappingURL=PersonaCoinPage.js.map