You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed the library for the first time and found myself working through the documentation and discovered a mistake.
The docs outline that the openMotion prop falls under the Collapse.Panel component. Although, I went looking into the source of the react-component github page - here - to discover that the openMotion is a prop on the <Collapse> component, not the <Panel>
I've attached two screenshots to highlight the mistake.
Correction: this is fixed on current upstream master dcd0f7852b17466f1bcd1ce693dbc49237c6c4ca. (The SHA previously shown here was the head of my open #454 branch, not upstream master.) Both README.md and README.zh-CN.md list openMotion in the Collapse API table, before the ItemType / Collapse.Panel sections. The source contract agrees: CollapseProps.openMotion is public, while ItemType explicitly omits the internal panel openMotion field.
The documentation mistake reported here is therefore no longer present, and this issue should be eligible for closure.
AI assistance disclosure: Codex was used to locate the current bilingual API tables and compare them with the type contract; I verified the corrected upstream head and cited structure before updating this comment.
Activity
nrps9909 commentedon Aug 28, 2026
Correction: this is fixed on current upstream master
dcd0f7852b17466f1bcd1ce693dbc49237c6c4ca. (The SHA previously shown here was the head of my open #454 branch, not upstream master.) BothREADME.mdandREADME.zh-CN.mdlistopenMotionin theCollapseAPI table, before theItemType/Collapse.Panelsections. The source contract agrees:CollapseProps.openMotionis public, whileItemTypeexplicitly omits the internal panelopenMotionfield.The documentation mistake reported here is therefore no longer present, and this issue should be eligible for closure.
AI assistance disclosure: Codex was used to locate the current bilingual API tables and compare them with the type contract; I verified the corrected upstream head and cited structure before updating this comment.