This repository has been archived by the owner on Jun 20, 2022. It is now read-only.
v10.0.0
Features
BREAKING CHANGES
React v16.8+ is now required
The library now uses hooks inside, hooks required React v16.8+.
Grid gutter is now based on system
Components Grid
, Row
and Col
accepts a gutter
property since a long time... But this prop was not accepting responsive and all system based utilities. It is now completely based on system.
// In v9, gutter will be "8px"
// In v10, gutter will be "40px", to fix it use `gutter="8px"` or better `gutter={1}`
<Grid gutter={8} />
Same behaviour for Row
an Col
components.
Toggler render props is now an array
Toggler now returns an array instead of an object. It allows better renaming and it is aligned with useState
signature.
// v9
<Toggler>{({ toggled, onToggle }) => { /* ... */ }</Toggler>
// v10
<Toggler>{([toggled, onToggle]) => { /* ... */ }</Toggler>