Skip to content

docs(core): document Banner's defaultIsExpanded prop#3208

Merged
cixzhang merged 1 commit into
facebook:mainfrom
durvesh1992:fix/banner-defaultisexpanded-doc
Jun 27, 2026
Merged

docs(core): document Banner's defaultIsExpanded prop#3208
cixzhang merged 1 commit into
facebook:mainfrom
durvesh1992:fix/banner-defaultisexpanded-doc

Conversation

@durvesh1992

Copy link
Copy Markdown
Contributor

Summary

Banner has a public defaultIsExpanded prop (boolean, @default false) — it controls whether the collapsible content area (children) starts expanded — but it was missing from the docsite properties tab. (The doc even lists "Collapsible content" in its anatomy, but the prop wasn't documented.)

Found via the interface-vs-docs prop scan. Added to the EN and ZH doc prop lists.

Testing

  • Regenerated docsite data — defaultIsExpanded now appears in the Banner component registry.

Changeset

Included (@astryxdesign/core patch, docs).

Banner has a public defaultIsExpanded prop (boolean, @default false) that
controls whether the collapsible content area starts expanded, but it was
missing from the docsite properties tab. Add it (EN + ZH). Found via the
interface-vs-doc prop scan.
@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 cixzhang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified defaultIsExpanded matches the source (boolean, default false). Optional, non-blocking: docsDense.propDescriptions is missing a defaultIsExpanded entry, so --dense falls back to the full EN description (other props have a compact one) — worth adding e.g. defaultIsExpanded: 'children start expanded' for consistency. LGTM.

@cixzhang cixzhang merged commit aa395fc into facebook:main Jun 27, 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