Chakra-ui: Property 'type' does not exist on VisuallyHidden compoenent types

Created on 17 Oct 2019  路  3Comments  路  Source: chakra-ui/chakra-ui

Hello,

i'm using an example from the docs here in my project I get a Typescript error on the VisuallyHidden component. I think there maybe an issue with the type definition.

Type '{ type: string; as: "input"; }' is not assignable to type 'IntrinsicAttributes & RefAttributes<any> & HTMLAttributes<any> & LayoutProps & ColorProps & SpaceProps<ReactText> & BordersProps & BackgroundProps<ReactText> & ... 14 more ... & { ...; }'.
  Property 'type' does not exist on type 'IntrinsicAttributes & RefAttributes<any> & HTMLAttributes<any> & LayoutProps & ColorProps & SpaceProps<ReactText> & BordersProps & BackgroundProps<ReactText> & ... 14 more ... & { ...; }'.ts(232

created a codepen example here - https://codesandbox.io/s/chakra-ts-starter-ii7wc

TypeScript 馃 stale

Most helpful comment

is there a solution in the meantime, before the code is migrated to TS?

All 3 comments

Hi @ChrisLusted,

Yes, it's an issue with the type definition. We're currently migrating the codebase to TS. Once we release it, this issue will be resolved.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.Thank you for your contributions.

is there a solution in the meantime, before the code is migrated to TS?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

callumflack picture callumflack  路  3Comments

rovervannispen picture rovervannispen  路  3Comments

harshzalavadiya picture harshzalavadiya  路  3Comments

checkmatez picture checkmatez  路  3Comments

woodworker picture woodworker  路  3Comments