packages/react-components/react-badge/library/docs/MIGRATION.md
v8 does not offer a component equivalent to v9's Badge. However, it does offer a PersonaCoin component that is similar in concept to v9's PresenceBadge component.
Here's how the API of v8's PersonaCoin compares to the one from v9's PresenceBadge component:
className => classNamecoinProps => Use native HTML props sent directly to root slot insteadcoinSize => sizecomponentRef => NOT SUPPORTED - use ref insteadisOutOfOffice => outOfOfficeonRenderPersonaCoin => Use slots customization insteadpresence => statuspresenceTitle => NOT SUPPORTEDstyles => Use style customization through className insteadv0 does not offer a component equivalent to v9's Badge. However, it does offer an AvatarStatus component that is similar in concept to v9's PresenceBadge component.
Here's how the API of v0's AvatarStatus compares to the one from v9's PresenceBadge component:
accessibility => NOT SUPPORTEDas => asclassName => classNamecolor => Use style customization through className insteaddesign => NOT SUPPORTEDicon => Use icon slotimage => NOT SUPPORTEDkey => NOT SUPPORTEDref => refsize => sizestate => statusstyles => Use style customization through className insteadvariables => NOT SUPPORTEDv8 PersonaCoin | v0 AvatarStatus | v9 PresenceBadge |
|---|---|---|
acessibility | ||
as | as | |
className | className | className |
coinProps | root slot | |
coinSize | size | size |
color | ||
componentRef | ref | ref |
design | ||
icon | icon slot | |
image | ||
isOutOfOffice | outOfOffice | |
key | ||
onRenderPersonaCoin | root slot | |
presence | state | status |
presenceTitle | ||
styles | styles | |
variables |