gravity-ui / uikit

Home Page:https://gravity-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTML-tag props are not inherited in Text component

chelentos opened this issue · comments

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; }'

Resolved here