Skip to content

Mistake within the Documentation #203

Description

@jared-luke

Hi,

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.
Screen Shot 2021-05-22 at 6 21 19 pm
Screen Shot 2021-05-22 at 6 21 41 pm

Thanks

Activity

  1. nrps9909 commented on Aug 28, 2026

    @nrps9909

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions