Skip to content

[docs-infra] Document bundle size of each component #602

Open
@oliviertassinari

Description

@oliviertassinari

Summary

Bundle size matters. I think it's important we document it in the docs. Documenting:

  • Forces us to measure it
  • Means developers know we know what it is
  • Means developers easily know if it's good enough for their use cases

For example, see propeldata/ui-kit#157 who are looking for a select component, there is a reputation for bloat to debunk (Base UI) and solve (Material UI).

Examples

I tried two iterations:

but never had time to work on this to finish it (It's why I was eager to fill: https://www.notion.so/mui-org/React-Engineer-Docs-infra-02023ab7104241888ca2ab3bcb32e19d). I was more trying to fix a regression in the DX.

Motivation

It's related to #201.

Closing this I think involves two steps:

  • Implementing it for Base UI
  • Supporting it for docs-infra so Material UI can also show components' size (assuming we fix their size)

Search keywords: -

Metadata

Metadata

Assignees

Labels

docsImprovements or additions to the documentationperformancescope: docs-infraSpecific to the docs-infra product

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions