import * as React from 'react'; import { ExampleCard, IComponentDemoPageProps, ComponentPage, PropertiesTableSet, } from '@fluentui/react-docsite-components'; import { PersonaCoinExample } from './PersonaCoin.Example'; import { PersonaCoinSizeAndColorExample } from './PersonaCoinSizeAndColor.Example'; const PersonaCoinExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-experiments/PersonaCoin/PersonaCoin.Example.tsx') as string; const PersonaCoinSizeAndColorExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-experiments/PersonaCoin/PersonaCoinSizeAndColor.Example.tsx') as string; export const PersonaCoinPage = (props: IComponentDemoPageProps) => { return ( } propertiesTables={ ('!raw-loader?esModule=false!@fluentui/react-experiments/src/components/PersonaCoin/PersonaCoin.types.ts'), ]} /> } overview={

The PersonaCoin component is generally used as a building block for other components like Persona/FacePile/VerticalPersona.

In case you need to render just a PersonaCoin you can use this component directly.

} dos={
  • Provide as few props as needed to render the coin
  • Use the text prop instead of the initials prop
} donts={
  • Change the colors of the initials or the coin unless you have a well grounded reason. (For consistency across products)
} isHeaderVisible={props.isHeaderVisible} /> ); };