Capgemini / dcx-react-library

React Library UI/UX agnostic
https://main--6069a6f47f4b9f002171f8e1.chromatic.com
MIT License
107 stars 7 forks source link

[Button] - should allow to pass an html content #563

Closed daniele-zurico closed 7 months ago

daniele-zurico commented 8 months ago

Currently, the button allows only passing a label element but no a more complex content like a span or whatever other thing. We should be allowed to do stuff like this:

<button>
   <span>this</span>
   <span> is </span>
   <span> the </span>
   <span> content </span>
</button>

please remember to:

git checkout release/1.0.0
git pull
git checkout -b 'feature/button-content'
daniele-zurico commented 7 months ago

closed by #576