former-kit
former-kit copied to clipboard
Alert component requires only React element as children
Context
The Alert
component requires a React Element to be passed as children.
Description
On the docs, a regular HTML element is passed as child to Alert
component, but the proptype requires an element:
https://github.com/pagarme/former-kit/blob/9a87c86c52a78abc9a8e2165e0a70d3be4784c39/src/Alert/index.js#L67
We should update it to node
instead.
Requirements
Checklist
- [ ] Allow regular HTML elements usage