Capgemini / dcx-react-library

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

Support anchor elements in FormRadioCheckbox label #431

Closed cg-mmirca closed 1 year ago

cg-mmirca commented 1 year ago

Is your feature request related to a problem? Please describe. I need to add anchor elements to the FormRadioCheckbox label. Currently it only supports String.

MicrosoftTeams-image (2)

Describe the solution you'd like I would want label to have either a string or a node

Example of use case An "I have read and accept the terms and conditions" checkbox, with a link in "terms and conditions" to reach the document.

Screenshot 2023-03-14 at 11 00 25

Describe alternatives you've considered I can reach the solution by leaving the label empty and having a node with the text and link next to the checkbox.

daniele-zurico commented 1 year ago

closed by #432