Add a new type to @clayui/nav in Vertical interface #4121
Labels
comp: clay-components
Issues related to Clay components. (e.g ClayCard, ClayLabel...)
rfc
Similar to the RFC that are used in React.js, Ember.js, Gatsby.js and Rust, but to mark problems tha
Milestone
What is your proposal?
Hi everyone, I'm using this @clayui/nav to build a sidebar menu, and I'm facing a Type Error that i want to propose the change.
In this interface
The label only accepts a string as value, but in the real scenario, you can pass React Component as well.
I had this particular use case to need to use a React Component in the label spot
So my suggestion is just to add React.ReactElement along with String type.
Why would adopting this proposal be beneficial?
This change can avoid type error, since is already possible to pass a React Component to the label
What are the alternatives to this proposal?
I don't see any
The text was updated successfully, but these errors were encountered: