We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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; }'
The text was updated successfully, but these errors were encountered:
сс @IsaevAlexandr
Sorry, something went wrong.
Resolved here
Hi! We are using version uikit 6.23.0 and components 3.7.0. We still have an error when using the "as" prop in the Text component:
export const Text: <C="span" extends any>({ref, ...props}: (TextProps<C> & Omit<React.PropsWithoutRef<React.ComponentProps<C>>, keyof TextProps<T>> & {ref?: TextRef<C> | undefined})) => React.ReactElement
No branches or pull requests
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; }'
The text was updated successfully, but these errors were encountered: