Grid - adding props from Box (`border` and `pad`)
See original GitHub issueExpected Behavior
Grid
s would have similar props to Box
Actual Behavior
Box
has many more stylistic props than Grid
Reasoning
As Grid
s and Box
es are both used for basic layouting often, it could be beneficial to add similar stylistic props to Grid
.
Currently focusing on border
and pad
before considering other props
See this Slack thread for more info - https://grommet.slack.com/archives/C04LMHN59/p1578672831048600
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
How to add padding and margin to all Material-UI components?
You can use de "Spacing" in a BOX component just by importing the component first: import Box from '@material-ui/core/Box';.
Read more >Style Props - Chakra UI
Style props are a way to alter the style of a component by simply passing props to it. It helps to save time...
Read more >Reference Table - Styled System
Reference Table. Styled System is organized into categories of style props. Each function provides the following props and maps to scales defined in...
Read more >Layout and Grid System | Components - BootstrapVue
Bootstrap's grid system uses a series of containers, rows, and columns to layout and align content. It's built with flexbox and is fully...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ShimiSun I’m hoping to participate in Hacktoberfest more broadly this year, so I’ll have a look! 😄
I was thinking the outer border only, to keep it consistent with how border would work if applied with css to a grid element and also with how border works in
Box
. Inner borders could be a separate prop if deemed necessary?