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.

Intellisense doesn't work when passing an Hope UI component to the `as`prop.

See original GitHub issue

When passing an Hope UI component to the asprop, the props of the component passed doesn’t get intellisense. In the below example we don’t get intellisense for the colorScheme prop of Button.

<MenuTrigger as={Button} colorScheme="primary">
  Button
</MenuTrigger>

This is caused by a wrong TypeScript type definition.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
fabien-mlcommented, May 25, 2022

Thanks, but I’m working on a overall redesign of this project so it will be part of that process

1reaction
arpitBhallacommented, May 20, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I get vscode intellisense to work when customizing ...
This one provides syntax highlighting and IntelliSense for styled-components. https://marketplace.visualstudio.com/items?
Read more >
Build Strongly-Typed Polymorphic Components with React ...
1. The as prop can receive invalid HTML elements. Presently, it is possible for a user to go ahead and write the following:...
Read more >
Intellisense doesn't work for a Class Instance returned from ...
I have an object called Game which contains a dictionary of two Team objects. The Game class has a method which returns a...
Read more >
Build a React Web App with Laravel Sanctum Part 1: Login
We check if the user is logged in, if it's fullfiled the original component (which is passed by as prop) will be render,...
Read more >
A fun community for developers to connect over code, tech ...
A community of over 30000 software developers who really understand what’s got you feeling like a coding genius or like you’re surrounded by...
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