This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
Blue - v0.0.10
Improve component props
Export propTypes
From now on, the const propTypes
being declared on components will be made available to be imported. This allows for easier propType re-use! All of Blue's components were updated to support this.
Making component props more flexible
With the rare exception of certain components (like Portal
), most of Blue's components have been updated to accept additional props beyond the defaultPropts by using the {...rest}
style method. The typical use-case would be to easily add custom style
options, or perhaps id
or data-
properties.
Example
<Avatar style={{ padding: 20 }} />
No changes/updates are required for the user/consumer!
These updates should work with existing integrations. 🚀