former-kit icon indicating copy to clipboard operation
former-kit copied to clipboard

Alert component requires only React element as children

Open vagrantsn opened this issue 6 years ago • 0 comments

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

vagrantsn avatar Sep 24 '18 22:09 vagrantsn