question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request to add CSS multi column support to [Box]

See original GitHub issue

What problem does this feature solve? Missing support for css columns (css columns on css-tricks)( (columns on MDN).

What does the proposed API look like? columnCount columnFill columnGap columnRuleStyle columnRuleWidth columnRuleColor columnRule columnSpan columnWidth breakInside

Describe alternatives you’ve considered Building columns with Flex or Grid, but CSS multi columns behave slightly different.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

6reactions
segunadebayocommented, Sep 13, 2020

Thanks for sharing your approach @trevorblades.

You also achieve this by using the sx prop in v1, which allows you to define regular css styles in a theme-aware, responsive manner.

<Box sx={{ columnCount: [1, 3] }}></Box>

@with-heart, the thing is, we created the sx prop as a fallback for style props we don’t allow by default. Perhaps, we can improve the docs a bit to make this clearer.

Cheers

5reactions
bogdansoarecommented, Aug 29, 2020

@with-heart @segunadebayo the downside of using the css prop is that you lose the responsive styles

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Multi-column Layout - CSS: Cascading Style Sheets | MDN
CSS Multi -column Layout is a module of CSS that adds support for multi-column layouts. Support is included for establishing the number of ......
Read more >
When And How To Use CSS Multi-Column Layout
In this article I'm going to take a look at Multi-column Layout — often referred to as multicol or sometimes “CSS Columns”.
Read more >
CSS Multi-column Layout Module Level 1
This specification describes multi-column layouts in CSS, a style sheet language for the web. Using functionality described in the specification ...
Read more >
How can I create multi columns from a single unordered list?
You can do that using just one list and define the number of columns with CSS. If you check CSS3 Multi-column layout browser...
Read more >
columns
Using both column-count and column-width is recommended to create a flexible multi-column layout. The column-count will act as the maximum ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found