Skip to content

Conversation

adierkens
Copy link
Contributor

This change builds upon some of the foundations from #6047 to enable us to progressively move towards more colocated documentation for our prop types inline with the TS source-code.

As a first-step, the list of properties to expose to documentation will still remain in the *.docs.json file, but each now have the option of using the "derive": true flag to gather any pertinent information from the TS types, including description (JSDoc), defaultValue, type, and required. Fields specified in the *.docs.json will override any from TS, allowing for customization as more is moved into each component.

This reduces the amount of overhead for maintaining the separate *.docs.json per Component and also has the added benefit of exposing better documentation for users within their IDEs (which already pull from JSDoc comments and tags like @default)

Before After
props specified in docs.json props derived from TS
JSDoc comments in code

Copy link

changeset-bot bot commented Aug 21, 2025

⚠️ No Changeset found

Latest commit: 43fee2d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Aug 21, 2025
Copy link
Contributor

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

Copy link
Contributor

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 90.2 KB (0%)
packages/react/dist/browser.umd.js 90.47 KB (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant