Skip to content

docs(core): document Heading's justify prop#3176

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

docs(core): document Heading's justify prop#3176
cixzhang merged 1 commit into
facebook:mainfrom
durvesh1992:fix/heading-justify-prop-doc

Conversation

@durvesh1992

Copy link
Copy Markdown
Contributor

Summary

Closes #2847.

Heading supports a justify prop (TextJustify: 'start' | 'center' | 'end', default 'start') for text alignment, but it was missing from the docsite properties tab. The properties tab is driven by the props array in packages/core/src/Text/Heading.doc.mjs, and justify simply wasn't listed.

Note: the issue called it "justification" (from the prop's JSDoc); the actual prop name is justify.

Added justify to all three doc exports (docs, docsZh, docsDense), positioned after textWrap to match the interface order.

Testing

  • Audited the full HeadingProps interface against the doc's prop list — justify was the only omission.
  • Re-ran generate-data.mjsjustify now appears in the generated Heading component registry.

Changeset

Included (@astryxdesign/core patch, docs) since .doc.mjs ships in core/src.

Closes facebook#2847.

Heading supports a `justify` prop (TextJustify: 'start' | 'center' |
'end') but it was missing from the docsite properties tab because the
prop was absent from Heading's doc props array. Add it to the English,
Chinese, and dense doc exports. Audited the rest of the list against
HeadingProps — `justify` was the only omission.
@vercel

vercel Bot commented Jun 26, 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 26, 2026
@cixzhang

Copy link
Copy Markdown
Contributor

Thanks for updating this!

@cixzhang cixzhang merged commit 676d006 into facebook:main Jun 27, 2026
13 of 14 checks passed
cixzhang pushed a commit to durvesh1992/astryx that referenced this pull request Jun 29, 2026
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.
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.

XDSHeading: "justification" prop missing from docsite properties tab

2 participants