HTML-tag props are not inherited in Text component
chelentos opened this issue · comments
Andrey Timofeev commented
For example I want to write something like this:
<Text as="label" htmlFor="someId">label text</Text>
But i'm getting ts error about not existing prop.
Error example
Property 'htmlFor' does not exist on type 'IntrinsicAttributes & { as?: "label" | undefined; } & Omit & { ref?: ((instance: HTMLLabelElement | null) => void) | RefObject | null | undefined; }'
Mr.Dr.Professor Patrick commented
Andrey Timofeev commented
Resolved here