How to determine that a component can accept native html attributes of a specific element? #6528
Unanswered
cawa-93
asked this question in
Help/Questions
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I build component that is some wrapper around native HTML element, how I should define what this component may accept any HTML attributes for this element?
For example, if I create custom input:
How do I explain to typescript, IDEs, and so on that this component work as an input and may accept all input attributes, and get Intelligent code completion?
I also have a type declaration file in which I declare the export of the component.
Maybe I should change these types somehow? I haven't found any documentation about that anywhere
Beta Was this translation helpful? Give feedback.
All reactions