Skip to content

wrap={false} but for components that span across multiple pages #3341

@caticHarun

Description

@caticHarun

Is your feature request related to a problem? Please describe.
I usually need a component that, if there is not enough space on a page, it starts on the next page. But that component can span across multiple pages. When I do wrap={false}, it cannot span across multiple pages, it just tries to fit everything in one page.

Describe the solution you'd like
It would be amazing for something like breakWhenNeeded={true} and it does this behaviour.

Describe alternatives you've considered
I used wrap property, but it failed. I also tried minPresenceAhead property, but it does not seem to do anything. I could not figure out how it works.

Additional context
There is a new library for calculating the height of items: https://github.com/chenglou/pretext
Maybe there is a solution to this there.
Also, this could help a lot since sometimes there are problems where at the end, the entire component gets mushed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions