Closed chelentos closed 1 month ago
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.
Property 'htmlFor' does not exist on type 'IntrinsicAttributes & { as?: "label" | undefined; } & Omit & { ref?: ((instance: HTMLLabelElement | null) => void) | RefObject | null | undefined; }'
сс @IsaevAlexandr
Resolved here
For example I want to write something like this:
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; }'