Migrate from 7 to 8
Version 8 is a vast rewrite.
1. Fallback for CSS Grid Layout was removed#
Until version 7 react-raster provided a fallback for browsers, that do not support CSS Grid Layout. In version 8 this feature was removed. If you rely on it, you need to stick to version 7.
2. Exports have changed#
Boxis now default export.Typesis nowProps.
3. Grid is now Box#
Change all Grid-components to Box
4. Box-Alignment was removed#
- react-raster used to provide alignment
centerandrightfor CSS Grid Layout. The props were namedalignXandalignY. This feature was removed. - In Grid Layout Boxes are aligned with
marginnow manually. - With Flexbox Boxes are aligned with
justifyContentandalignItems/alignContent.
5. Props changed names#
- alignX โ justifyContent
- alignY โ alignItems/alignContent
- attrs โ
removed - bottom โ marginBottom
- cssMode โ
removed - gutterX โ gridRowGap
- gutterY โ gridColumnGap
- hasChildBoxes โ
removed - left โ marginLeft
- right โ marginRight
- css โ styles
- tag โ as
- top โ marginTop