We have found a valid use case for which the API of the DxcSidenav.Link does not fit properly. This use case was to add a status tag, inline with the text of the Sidenav link, to let the user know the current state of each documentation page. Since the children of the Link are typed as string, that is currently not allowed.
The feature here is to replace this type with React.ReactNode.
We have found a valid use case for which the API of the
DxcSidenav.Link
does not fit properly. This use case was to add a status tag, inline with the text of the Sidenav link, to let the user know the current state of each documentation page. Since the children of the Link are typed asstring
, that is currently not allowed.The feature here is to replace this type with
React.ReactNode
.