packages/react-components/react-persona/library/docs/MIGRATION.md
v8 offers a component equivalent to v9's Persona. However, the API is slightly different. The main difference is that v9's Persona does not handle the functionality of the presence and avatar. Instead, the presence and avatar are separate components that can be used in conjunction with Persona.
Here's how the API of v8's Persona compares to the one from v9's Persona component:
className => classNamecoinProps => Use avatar's or presence's slot propscomponentRef => NOT SUPPORTED - use ref insteadhidePersonaDetails => Use the Avatar component for this caseimageShouldFadeIn => NOT SUPPORTEDisOutOfOffice => Use the outOfOffice prop of the presence slot. E.g.: presence={{ outOfOffice: true }}presence => Use the status prop of the presence slot. E.g.: presence={{ status: 'away' }}presenceTitle => NOT SUPPORTEDshowOverflowTooltip => NOT SUPPORTEDshowUnknownPersonaCoin => NOT SUPPORTEDstyles => Use style customization through className insteadv8 Persona | v9 Persona |
|---|---|
coinProps | avatar or badge slot props |
coinSize | size |
className | className |
componentRef | ref |
hidePersonaDetails | - |
imageShouldFadeIn | - |
isOutOfOffice | status in presence slot props |
optionalText | quaternaryText |
presence | presence |
presenceTitle | name |
primaryText | name |
secondaryText | secondaryText |
showOverflowTooltip | - |
showUnknownPersonaCoin | - |
styles | className |
tertiaryText | tertiaryText |
text | name |