Bbackstage

backstage/migrate-mui-card-to-bui-card

MUI 4 to BUI: Replace Card family with BUI Card

backstagemigrationmuibuicard
Public
0 executions

Run locally

npx codemod @backstage/migrate-mui-card-to-bui-card

@backstage/migrate-mui-card-to-bui-card

Migrates MUI 4 Card family usage to Backstage UI Card.

Covers

  • CardCard
  • CardContentCardBody
  • CardActionsCardFooter
  • Simple CardHeader (children-only or string title) → CardHeader with children
  • Deep and barrel imports from @material-ui/core
  • Merging into an existing @backstage/ui import

TODOs left for humans

  • CardMedia (no BUI equivalent)
  • Complex CardHeader with avatar, action, subheader, or non-string title

Won't do

  • Rewriting custom Card wrappers or theme overrides

Ready to contribute?

Build your own codemod and share it with the community.