Tag/Badge: SeverityType incorrect #3056
Labels
Type: Bug
Issue contains a defect related to a specific component.
Typescript
Issue or pull request is *only* related to TypeScript definition
Milestone
Describe the bug
The type TagSeverityType allows 'success' | 'info' | 'warn' | 'error'
it's incorrect, documentation is correct: https://www.primefaces.org/primereact/tag/
It is success, info, warning, danger .
Currently typescript complain, as a workaround I do
<Tag severity={'warning' as TagSeverityType} />
Reproducer
No response
PrimeReact version
8.2.0
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The text was updated successfully, but these errors were encountered: