question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Progress component: `title` prop is a string, could be more flexible as a `React.ReactNode`

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mturleycommented, Jun 1, 2021

I’d still like to address this when I have time.

0reactions
mturleycommented, Aug 2, 2021

bump

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found