Progress component: `title` prop is a string, could be more flexible as a `React.ReactNode`
See original GitHub issueI have a use case where I want to be able to click on the title of a <Progress>
bar and have a popover appear with more details about the current phase of the process. I can’t do that right now without breaking the TypeScript type of the title
prop, which is currently string
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
reactjs - When passing component as prop i get TS2604 error ...
I think your problem is, that you are trying to use a type which does not exist. When you're deconstructing your props you...
Read more >Specify Types of Props With PropTypes - Intermediate React
The default props for title and label are an empty string. The default prop for picture is DefaultPicture , which we've used in...
Read more >primary-react-components - npm package - Snyk
We found a way for you to contribute to the project! Looks like primary-react-components is missing a security policy. You can connect your...
Read more >Build strongly typed polymorphic components with React and ...
Learn how to build strongly typed polymorphic React components with TypeScript, using familiar Chakra UI and MUI component props as guides.
Read more >Type-safe state modeling with TypeScript and React Hooks
Combining that with the flexibility of TypeScript interfaces, there are several different methods we can use to model our component state ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’d still like to address this when I have time.
bump