Skip to content

docs(core): document Text's justify prop#3203

Merged
cixzhang merged 1 commit into
facebook:mainfrom
durvesh1992:fix/text-justify-prop-doc
Jun 29, 2026
Merged

docs(core): document Text's justify prop#3203
cixzhang merged 1 commit into
facebook:mainfrom
durvesh1992:fix/text-justify-prop-doc

Conversation

@durvesh1992

Copy link
Copy Markdown
Contributor

Summary

Text supports a justify prop (TextJustify: 'start' | 'center' | 'end', default 'start') but it was missing from the docsite properties tab — the exact same omission I fixed for its sibling Heading in #3176.

Found by scanning component interfaces against their .doc.mjs prop lists. Added justify to Text's doc props (after textWrap, matching interface order).

Testing

  • Regenerated docsite data — justify now appears in the Text component registry.

Note

The same scan surfaced other props missing from various components' docs (e.g. Link's type/size/weight/color/display, several width props). Those need per-prop judgment (some omissions are intentional for advanced/system props), so I'm keeping this PR scoped to the unambiguous justify case that mirrors the already-reviewed Heading fix. Happy to follow up on others if useful.

Changeset

Included (@astryxdesign/core patch, docs).

@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 27, 2026
@cixzhang

Copy link
Copy Markdown
Contributor

Build is failing on this PR since main was briefly broken for the build step. It's been fixed now. Could you rebase this PR over latest main to get a green CI?

Text supports a justify prop (TextJustify: 'start' | 'center' | 'end')
but it was missing from the docsite properties tab — the same omission
fixed for its sibling Heading in facebook#3176. Add it to Text's doc props.
Found by scanning component interfaces vs their .doc.mjs prop lists.
@cixzhang cixzhang force-pushed the fix/text-justify-prop-doc branch from fe96540 to 98af464 Compare June 29, 2026 05:13
@cixzhang cixzhang merged commit f6cbc74 into facebook:main Jun 29, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants