Skip to content

Support for row-cols in <Row> #4887

@kosmiq

Description

@kosmiq

Is your feature request related to a problem? Please describe

Bootstrap 4.4 added .row-cols-x classes to the row class (https://getbootstrap.com/docs/4.4/layout/grid/#row-columns)

This would be an awesome addition to react-bootstrap.

Describe the solution you'd like

I'd imagine something like
<Row xs={[number]}></Row>

Thus having a similar usage as does when defining widths of columns.

The docs would of course need to be updated to reflect this.

Describe alternatives you've considered

I did briefly consider that it could be set as
<Row cols={[number]}></Row>
but then we would need
<Row cols-xs={[number]}></Row>
or similar to define breakpoints and that feels less clean.

Additional context

Bootstrap docs for row-cols: https://getbootstrap.com/docs/4.4/layout/grid/#row-columns

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