[Feature Request]: As a Developer, I would like to import types from @carbon/react
#16436
Open
1 task done
Labels
area: typescript
component: tags
proposal: accepted
This request has gone through triaging and we are accepting PR's against it.
role: dev 🤖
type: enhancement 💡
type: infrastructure 🤖
Issues relating to devops, tech debt, etc.
Milestone
The problem
Users are often using reusable components to render Tags with different colors (type) based on some status.
To achieve this, a TagType enum needs to be defined because we can not import it from carbon/react.
For instance:
The solution
Could be nice to define and export a
TagType
containing all supported types and then import it so that we can use it in our interfaces, couple of examples below.Examples
Example of an interface for Props, with tagType
Application/PAL
No response
Business priority
Low Priority = release date is not dependent on fix or not upcoming
Available extra resources
I'm happy to contribute if this change can be useful.
Code of Conduct
The text was updated successfully, but these errors were encountered: