Skip to content

[css-flexbox] flex-wrap-layout property for wrapped flex lines #8252

@artit-io

Description

@artit-io

I know that CSS grids are a good alternative to tables but not available in react-native/yoga. A layout property for multiple lines would solve a lot of problems and make CSS grids less overused. CSS grids also tend to not scale well because you need to define everything on the parent.

Currently it's not possible to render a simple dynamic bar chart with X and Y axis without using tables or grids. A bar chart has nothing to deal with tables or grids.

I'm thinking about something like this:

flex-wrap-layout: tabular

Currently dealing with tables a bit of magic to achieve flex-like layout.

You need something like this:

table {
  width: 100%;
  table-layout: fixed;
}
td {
   width: 100px;
}
td:last-child {
   width: 100%;
}

This gets very complicated very quickly.

The corresponding OpenAI discussion. Are we there yet?
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions