Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

v10.0.0

Compare
Choose a tag to compare
@gregberge gregberge released this 20 Mar 17:26
· 81 commits to master since this release

Features

  • popover, tooltips, responsive grid, hooks (#122) (7bc0b8c)

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>