Responsive React grid system built with styled-system, with support for styled components and emotion (previously called grid-styled). The Box component handles width, margin and padding. All @rebass/grid components use styled system for style props, which pick up values from a theme and allow for responsive styles to be passed as array values. Sets width, where numbers 0-1 are percentage values, larger numbers are pixel values, and strings are raw CSS values with units. Pass an array to set different widths at different breakpoints for responsive styles. Both margin and padding props accept numbers, strings, and arrays as values. Using a number from 0-8 (i.e. an index of theme.space) will reference a step on the spacing scale. Larger numbers are converted to pixel values. Negative Numbers can be used to set negative margins and compensate for grid gutters. Strings are passed directly for other valid CSS values.

Features

  • Use array values to set different margin or padding values per breakpoint for responsive styles
  • Margin and padding props follow a shorthand syntax for specifying direction
  • Pass styles to styled-components or emotion
  • The Flex component extends the Box component and sets display flex
  • Component can be extended with React or using styled-components or emotion
  • Rebass Grid is intended for use with styled-components v4

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Rebass Grid

Rebass Grid Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Rebass Grid!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Software Development Software

Registered

2022-06-22