packages/react-components/react-button/library/docs/MIGRATION.md
Common buttons now all map to Button:
v8 Button | Converged Button |
|---|---|
<DefaultButton text="Hello, world" /> | <Button>Hello, world</Button> |
<PrimaryButton text="Hello, world" /> | <Button primary>Hello, world</Button> |
<IconButton iconProps={{ iconName: 'Add' }} /> | <Button subtle icon={ <Icon iconName="Add" /> } /> |
childrendisabledhrefallowDisabledFocus => disabledFocusableelementRef => refariaDescription => Getting it as aria-description insteadariaHidden => Getting it as aria-hidden insteadariaLabel => Getting it as aria-label insteadclassNamebuttonType => Use correct component insteaddescription => Use secondaryText in CompoundButton insteadrenderPersistedMenuHiddenOnMount => Removed since legacy Edge has been deprecatedrootProps => Just pass the props insteadtoggled => Use checked instead in ToggleButtonchecked => Considered for ToggleButtonmenuAs => Considered for MenuButtonmenuIconProps => Considered for MenuButtonmenuProps => Considered for MenuButtonmenuTriggerKeyCode => Considered for MenuButtononAfterMenuDismiss => Considered for MenuButtononMenuClick => Considered for MenuButtononRenderAriaDescription => Considered for CompoundButtononRenderDescription => Considered for CompoundButtononRenderMenu => Considered for MenuButtononRenderMenuIcon => Considered for MenuButtonpersistMenu => Considered for MenuButtonprimaryActionButtonProps => Considered for SplitButtonprimaryDisabled => Considered for SplitButtonsecondaryText => Considered for CompoundButtonsplitButtonAriaLabel => Considered for SplitButtonsplitButtonMenuProps => Considered for SplitButtoncomponentRef => Use regular ref insteadiconProps => Add the icon customized as you want via the icon tokenkeytipProps => Wrap the component with the Keytip component insteadonRenderChildren => Pass the customized children as you want insteadonRenderIcon => Add the icon customized as you want via the icon tokenprimary => Use primary value in appearance prop insteadonRenderText => Add the text customized as you want by passing it as children insteadsplit => Use SplitButton component insteadstyles => Use new styling system via tokens insteadtext => Pass the text as children insteadtoggle => Use ToggleButton component insteaddatadefaultRendergetClassNamesgetSplitButtonClassNamesloaderloadingthemeuniqueIdchildrendisableddisabledFocusableiconiconPositionsizetext => transparentclassNameonClickonFocusaccessibility => Override accessibility behavior by composing the Button how you wantcircular => Use circular value in shape prop insteadcontent => Pass the content as children insteadprimary => Use primary value in appearance prop insteadsecondary => Use the Button as it comes by default insteadiconOnlyinvertedv8 Button | v0 Button | v9 Button |
|---|---|---|
accessibility | ||
allowDisabledFocus | disabledFocusable | disabledFocusable |
ariaDescription | aria-description | aria-description |
ariaHidden | aria-hidden | aria-hidden |
ariaLabel | aria-label | aria-label |
buttonType | ||
checked | ||
children | children | children |
circular | shape=circular | |
className | className | className |
componentRef | ||
data | ||
defaultRender | ||
description | ||
disabled | disabled | disabled |
elementRef | ref | |
fluid | ||
getClassNames | ||
getSplitButtonClassNames | ||
href | href | |
icon | icon | |
iconOnly | ||
iconPosition | iconPosition | |
iconProps | ||
inverted | ||
keytipProps | ||
loader | ||
loading | ||
menuAs | ||
menuIconProps | ||
menuProps | ||
menuTriggerKeyCode | ||
onAfterMenuDismiss | ||
onClick | onClick | onClick |
onFocus | onFocus | onFocus |
onMenuClick | ||
onRenderAriaDescription | ||
onRenderChildren | ||
onRenderDescription | ||
onRenderIcon | ||
onRenderMenu | ||
onRenderMenuIcon | ||
onRenderText | ||
persistMenu | ||
primary | primary | appearance='primary' |
primaryActionButtonProps | ||
primaryDisabled | ||
renderPersistedMenuHiddenOnMount | ||
rootProps | ||
secondary | ||
secondaryText | ||
size | size | |
split | ||
splitButtonAriaLabel | ||
splitButtonMenuProps | ||
styles | ||
text | content | |
text | transparent | |
theme | ||
toggle | ||
toggled | ||
uniqueId |